mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-16 06:22:59 +00:00
Merge pull request #1381 from minrk/log-fix
fix logging error when login_user is called with no form data and login fails
This commit is contained in:
@@ -347,7 +347,7 @@ class BaseHandler(RequestHandler):
|
|||||||
else:
|
else:
|
||||||
self.statsd.incr('login.failure')
|
self.statsd.incr('login.failure')
|
||||||
self.statsd.timing('login.authenticate.failure', auth_timer.ms)
|
self.statsd.timing('login.authenticate.failure', auth_timer.ms)
|
||||||
self.log.warning("Failed login for %s", data.get('username', 'unknown user'))
|
self.log.warning("Failed login for %s", (data or {}).get('username', 'unknown user'))
|
||||||
|
|
||||||
|
|
||||||
#---------------------------------------------------------------
|
#---------------------------------------------------------------
|
||||||
|
Reference in New Issue
Block a user