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 autenticated_user
if current_user
is not available.
Closes gitlab-org/gitlab-ee#3611
Edited by Stan Hu