diff options
author | Stan Hu <stanhu@gmail.com> | 2017-10-03 09:28:22 +0300 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2017-10-04 21:47:36 +0300 |
commit | 5d52bb59dc632601f4028b430deae7348c5e279b (patch) | |
tree | c183ffd1755c4c9e4b784d07e4437664cf4b8129 /changelogs | |
parent | aaa57c9d35b1eb744fca970263220850db06639f (diff) |
Fix username and ID not logging in production_json.log for Git activity
Devise sets `current_user`, but not all controllers authenticate users by
session tokens. Try to use the controller-defined `authenticated_user` if
`current_user` is not available.
Closes gitlab-org/gitlab-ee#3611
Diffstat (limited to 'changelogs')
-rw-r--r-- | changelogs/unreleased/sh-fix-username-logging.yml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/changelogs/unreleased/sh-fix-username-logging.yml b/changelogs/unreleased/sh-fix-username-logging.yml new file mode 100644 index 00000000000..dadf3fb6729 --- /dev/null +++ b/changelogs/unreleased/sh-fix-username-logging.yml @@ -0,0 +1,5 @@ +--- +title: Fix username and ID not logging in production_json.log for Git activity +merge_request: +author: +type: fixed |