diff options
| author | 2019-01-23 22:10:32 +0000 | |
|---|---|---|
| committer | 2019-01-23 22:10:32 +0000 | |
| commit | 086629f2dc7a18c9c95d04379a0a5b4a8817d624 (patch) | |
| tree | 6ef7f6f715d23ddde2b15d943a2898e45a3a5838 /modules | |
| parent | INFO log when we get a HTTP request with an API key (including the key's (diff) | |
| signature | ||
Logging shouldn't use `%` string formatting (rest_api.py)
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/rest_api.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/rest_api.py b/modules/rest_api.py index 4a71e834..3178a5bf 100644 --- a/modules/rest_api.py +++ b/modules/rest_api.py @@ -28,8 +28,8 @@ class Handler(http.server.BaseHTTPRequestHandler): permissions = key_setting.get("permissions", []) if key_setting: - _log.info("[HTTP] %s from API key %s (%s)" % - (method, key, key_setting["comment"])) + _log.info("[HTTP] %s from API key %s (%s)", + [method, key, key_setting["comment"]]) if not authenticated or path in permissions or "*" in permissions: if path.startswith("/api/"): |
