From c578470fc32b46c98e9d6210cdb73d14c270c7de Mon Sep 17 00:00:00 2001 From: Peter Bieringer Date: Mon, 19 Sep 2016 20:11:52 +0200 Subject: [PATCH] log depth also on response log line --- radicale/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radicale/__init__.py b/radicale/__init__.py index 87ec4c8..46f7ec8 100644 --- a/radicale/__init__.py +++ b/radicale/__init__.py @@ -299,7 +299,7 @@ class Application: time_end = datetime.datetime.now() status = "%i %s" % ( status, client.responses.get(status, "Unknown")) - self.logger.info("%s answer status for %s in %s sec: %s", environ["REQUEST_METHOD"], environ["PATH_INFO"], (time_end - time_begin).total_seconds(), status) + self.logger.info("%s answer status for %s in %s sec: %s", environ["REQUEST_METHOD"], environ["PATH_INFO"] + depthinfo, (time_end - time_begin).total_seconds(), status) start_response(status, list(headers.items())) # Return response content return [answer] if answer else []