Use warning instead of warn for logs

This commit is contained in:
Carol Willing
2016-10-26 04:06:29 -07:00
parent 4a622cb964
commit d957c5158f
4 changed files with 5 additions and 5 deletions

View File

@@ -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.