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

@@ -168,11 +168,11 @@ class Spawner(LoggingConfigurable):
print(proposal)
v = proposal['value']
if '%U' in v:
self.log.warn("%%U for username in %s is deprecated in JupyterHub 0.7, use {username}",
self.log.warning("%%U for username in %s is deprecated in JupyterHub 0.7, use {username}",
proposal['trait'].name,
)
v = v.replace('%U', '{username}')
self.log.warn("Converting %r to %r", proposal['value'], v)
self.log.warning("Converting %r to %r", proposal['value'], v)
return v
disable_user_config = Bool(False,