mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-17 15:03:02 +00:00
Use warning instead of warn for logs
This commit is contained in:
@@ -29,7 +29,7 @@ class RootHandler(BaseHandler):
|
||||
def get(self):
|
||||
next_url = self.get_argument('next', '')
|
||||
if not next_url.startswith('/'):
|
||||
self.log.warn("Disallowing redirect outside JupyterHub: %r", next_url)
|
||||
self.log.warning("Disallowing redirect outside JupyterHub: %r", next_url)
|
||||
next_url = ''
|
||||
if next_url and next_url.startswith(url_path_join(self.base_url, 'user/')):
|
||||
# add /hub/ prefix, to ensure we redirect to the right user's server.
|
||||
|
Reference in New Issue
Block a user