Commit b92b7d82 authored by Sean McGivern's avatar Sean McGivern

Merge branch 'sh-add-ua-to-lograge-logs' into 'master'

Add User-Agent to production_json.log

See merge request gitlab-org/gitlab-ce!21546
parents 172c2d51 93005b4e
Pipeline #29540579 passed with stages
in 39 minutes and 1 second
......@@ -110,6 +110,7 @@ class ApplicationController < ActionController::Base
def append_info_to_payload(payload)
super
payload[:ua] = request.env["HTTP_USER_AGENT"]
payload[:remote_ip] = request.remote_ip
logged_user = auth_user
......
---
title: Add User-Agent to production_json.log
merge_request: 21546
author:
type: other
......@@ -22,7 +22,8 @@ unless Sidekiq.server?
params: params,
remote_ip: event.payload[:remote_ip],
user_id: event.payload[:user_id],
username: event.payload[:username]
username: event.payload[:username],
ua: event.payload[:ua]
}
gitaly_calls = Gitlab::GitalyClient.get_request_count
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment