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

@@ -182,7 +182,7 @@ class HubAuth(Configurable):
app_log.error("Upstream failure verifying auth token: [%i] %s", r.status_code, r.reason)
raise HTTPError(502, "Failed to check authorization (upstream problem)")
elif r.status_code >= 400:
app_log.warn("Failed to check authorization: [%i] %s", r.status_code, r.reason)
app_log.warning("Failed to check authorization: [%i] %s", r.status_code, r.reason)
raise HTTPError(500, "Failed to check authorization")
else:
data = r.json()