diff options
| author | 2019-03-11 12:12:51 +0000 | |
|---|---|---|
| committer | 2019-03-11 12:12:51 +0000 | |
| commit | 9d91ea6ed4c237177c09dc826caad102a39cf183 (patch) | |
| tree | 0aa9bc157b4452fef4e4c45128b325fcb7b238ca /modules | |
| parent | Don't fail when eagle api url/key are not present (diff) | |
| signature | ||
DEBUG log when REST API _handle starts and finishes
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/rest_api.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/rest_api.py b/modules/rest_api.py index a70fca6f..6fa0c4e1 100644 --- a/modules/rest_api.py +++ b/modules/rest_api.py @@ -39,6 +39,9 @@ class Handler(http.server.BaseHTTPRequestHandler): return [key_setting, minify] def _handle(self, method): + _log.debug("[HTTP] starting _handle for %s from %s", + [method, self.client_address]) + path, endpoint, args = self._path_data() headers = utils.CaseInsensitiveDict(dict(self.headers.items())) params = self._url_params() @@ -91,6 +94,8 @@ class Handler(http.server.BaseHTTPRequestHandler): self._respond(code, headers, response) + _log.debug("[HTTP] finishing _handle for %s from %s", + [method, self.client_address]) def do_GET(self): self._handle("GET") |
