Преглед изворни кода

Reopen child logs when we get a logreopen signal.

Chris McDonough пре 19 година
родитељ
комит
f4e3d30c6f
2 измењених фајлова са 3 додато и 2 уклоњено
  1. 0 2
      TODO.txt
  2. 3 0
      src/supervisor/supervisord.py

+ 0 - 2
TODO.txt

@@ -40,8 +40,6 @@
 
 - stop logging all RPC requests in info mode when we ship
 
-- reopen child logs when we get a logreopen signal
-
 - Collector issue 75:
 
   If the pid file isn't writable, it dies silently. When I ran it with

+ 3 - 0
src/supervisor/supervisord.py

@@ -709,6 +709,9 @@ class Supervisor:
             if hasattr(handler, 'reopen'):
                 handler.reopen()
 
+        for process in self.processes.values():
+            process.reopenlogs()
+
     def sigchild(self, sig, frame):
         # do nothing here, we reap our children synchronously
         self.options.logger.info('received sigchild')