Explorar o código

Documented celery.log.emergency_error

Ask Solem %!s(int64=16) %!d(string=hai) anos
pai
achega
9bff77dc7c
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      celery/log.py

+ 3 - 0
celery/log.py

@@ -28,6 +28,9 @@ def setup_logger(loglevel=DAEMON_LOG_LEVEL, logfile=None, format=LOG_FORMAT,
 
 
 def emergency_error(logfile, message):
+    """Emergency error logging, for when there's no standard file
+    descriptors open because the process has been daemonized or for
+    some other reason."""
     logfh_needs_to_close = False
     if hasattr(logfile, "write"):
         logfh = logfile