From 9d91ea6ed4c237177c09dc826caad102a39cf183 Mon Sep 17 00:00:00 2001 From: jesopo Date: Mon, 11 Mar 2019 12:12:51 +0000 Subject: [PATCH] DEBUG log when REST API _handle starts and finishes --- modules/rest_api.py | 5 +++++ 1 file changed, 5 insertions(+) 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")