Skip to content

Commit 7341d45

Browse files
committed
Removed the formatter at PEventListenerDispatcher
1 parent 68580b6 commit 7341d45

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

supervisor/dispatchers.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -315,17 +315,11 @@ def __init__(self, process, channel, fd):
315315
if logfile:
316316
maxbytes = getattr(process.config, '%s_logfile_maxbytes' % channel)
317317
backups = getattr(process.config, '%s_logfile_backups' % channel)
318-
prepend_timestamp = getattr(process.config, '%s_prepend_timestamp' % channel)
319-
320-
formatter = '%(message)s'
321-
if prepend_timestamp:
322-
formatter = '%(asctime)s %(message)s'
323-
324318
self.childlog = process.config.options.getLogger()
325319
loggers.handle_file(
326320
self.childlog,
327321
logfile,
328-
formatter,
322+
'%(message)s',
329323
rotating=not not maxbytes, # optimization
330324
maxbytes=maxbytes,
331325
backups=backups,
@@ -342,6 +336,7 @@ def reopenlogs(self):
342336
for handler in self.childlog.handlers:
343337
handler.reopen()
344338

339+
345340
def writable(self):
346341
return False
347342

0 commit comments

Comments
 (0)