Browse Source

Updated another use of getLogger to use the new constructors.

--HG--
extra : source : b622386559fba4a8ef90a4451e8d578cdcf2854c
Jason R. Coombs 12 năm trước cách đây
mục cha
commit
e1efa2148d
1 tập tin đã thay đổi với 4 bổ sung3 xóa
  1. 4 3
      supervisor/dispatchers.py

+ 4 - 3
supervisor/dispatchers.py

@@ -292,13 +292,14 @@ class PEventListenerDispatcher(PDispatcher):
         if logfile:
             maxbytes = getattr(process.config, '%s_logfile_maxbytes' % channel)
             backups = getattr(process.config, '%s_logfile_backups' % channel)
-            self.childlog = process.config.options.getLogger(
+            self.childlog = loggers.handle_file(
+                process.config.options.getLogger(),
                 logfile,
-                loggers.LevelsByName.INFO,
                 '%(message)s',
                 rotating=not not maxbytes, # optimization
                 maxbytes=maxbytes,
-                backups=backups)
+                backups=backups,
+            )
 
     def removelogs(self):
         if self.childlog is not None: