diff options
Diffstat (limited to 'modules/rest_api.py')
| -rw-r--r-- | modules/rest_api.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/modules/rest_api.py b/modules/rest_api.py index bbedabbd..024a4ce1 100644 --- a/modules/rest_api.py +++ b/modules/rest_api.py @@ -39,10 +39,11 @@ class Handler(http.server.BaseHTTPRequestHandler): return [key_setting, minify] def _handle(self, method): - _log.debug("[HTTP] starting _handle for %s from %s:%d", - [method, self.client_address[0], self.client_address[1]]) - path, endpoint, args = self._path_data() + + _log.debug("[HTTP] starting _handle for %s from %s:%d: %s", + [method, self.client_address[0], self.client_address[1], path]) + headers = utils.CaseInsensitiveDict(dict(self.headers.items())) params = self._url_params() data = self._body() @@ -104,7 +105,7 @@ class Handler(http.server.BaseHTTPRequestHandler): self._handle("POST") def log_message(self, format, *args): - _log.debug("[HTTP] " + format, args) + return @utils.export("botset", {"setting": "rest-api", "help": "Enable/disable REST API", |
