Logging shouldn't use %
string formatting (rest_api.py)
This commit is contained in:
parent
6fef7fd0c6
commit
086629f2dc
1 changed files with 2 additions and 2 deletions
|
@ -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/"):
|
||||||
|
|
Loading…
Reference in a new issue