Explorar o código

Add a logger for answer status

Guillaume Ayoub %!s(int64=14) %!d(string=hai) anos
pai
achega
3689944372
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      radicale/__init__.py

+ 1 - 0
radicale/__init__.py

@@ -255,6 +255,7 @@ class Application(object):
 
         # Start response
         status = "%i %s" % (status, client.responses.get(status, "Unknown"))
+        log.LOGGER.debug("Answer status: %s" % status)
         start_response(status, list(headers.items()))
 
         # Return response content