Logging shouldn't use % string formatting (rest_api.py)

This commit is contained in:
jesopo 2019-01-23 22:10:32 +00:00
parent 6fef7fd0c6
commit 086629f2dc

View file

@ -28,8 +28,8 @@ class Handler(http.server.BaseHTTPRequestHandler):
permissions = key_setting.get("permissions", []) permissions = key_setting.get("permissions", [])
if key_setting: if key_setting:
_log.info("[HTTP] %s from API key %s (%s)" % _log.info("[HTTP] %s from API key %s (%s)",
(method, key, key_setting["comment"])) [method, key, key_setting["comment"]])
if not authenticated or path in permissions or "*" in permissions: if not authenticated or path in permissions or "*" in permissions:
if path.startswith("/api/"): if path.startswith("/api/"):