Skip to content

Usernames mixed up in application.log when impersonating

When de-impersonating a user it seems that the corresponding log line in application.log is mixed up between admin and impersonated user.

For example if admin impersonate someUser you currently get:

August 17, 2016 17:24: User admin has started impersonating someUser
August 17, 2016 17:24: User someUser has stopped impersonating admin

From what I understand the last log line shoud be instead:

August 17, 2016 17:24: User admin has stopped impersonating someUser

Seen on gitlab-ce 8.10.6