diff options
author | Stan Hu <stanhu@gmail.com> | 2018-06-06 00:47:53 -0700 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2018-06-06 13:16:15 -0700 |
commit | 5d3abdf9a7c0260c708a46e2fd232b0490940f80 (patch) | |
tree | d9091cbdb013c47543ae37984d11c0b1436a6e61 /config | |
parent | 005bc94447373a533b5258436012474142f1ef30 (diff) | |
download | gitlab-ce-5d3abdf9a7c0260c708a46e2fd232b0490940f80.tar.gz |
Log response body to production_json.log when a controller responds with a 422 status
We have a number of import errors occurring with 422 errors, and
it's hard to determine why they are happening. This change will
surface the errors in the log lines.
Relates to #47365
Diffstat (limited to 'config')
-rw-r--r-- | config/initializers/lograge.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/config/initializers/lograge.rb b/config/initializers/lograge.rb index 114c1cb512f..1cf8a24e98c 100644 --- a/config/initializers/lograge.rb +++ b/config/initializers/lograge.rb @@ -27,6 +27,7 @@ unless Sidekiq.server? gitaly_calls = Gitlab::GitalyClient.get_request_count payload[:gitaly_calls] = gitaly_calls if gitaly_calls > 0 + payload[:response] = event.payload[:response] if event.payload[:response] payload end |