Quellcode durchsuchen

log depth also on response log line

Peter Bieringer vor 9 Jahren
Ursprung
Commit
c578470fc3
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      radicale/__init__.py

+ 1 - 1
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 []