mirror of
https://github.com/DMOJ/online-judge.git
synced 2024-11-25 16:32:37 +08:00
Record request language in uWSGI logs
This commit is contained in:
parent
1f2515515a
commit
473a77d824
@ -45,6 +45,7 @@ class DMOJLoginMiddleware(object):
|
||||
profile = request.profile = request.user.profile
|
||||
if uwsgi:
|
||||
uwsgi.set_logvar('username', request.user.username)
|
||||
uwsgi.set_logvar('language', request.LANGUAGE_CODE)
|
||||
|
||||
logout_path = reverse('auth_logout')
|
||||
login_2fa_path = reverse('login_2fa')
|
||||
|
Loading…
Reference in New Issue
Block a user