mirror of https://github.com/zulip/zulip.git
Use WatchedFileHandler rather than TimedRotatingFileHandler.
TimedRotatingFileHandler does not properly handle multiple processes writing logs at the same time, and thus can end up losing data.
This commit is contained in:
parent
f999f63999
commit
d876fac01a
|
@ -893,21 +893,15 @@ LOGGING = {
|
|||
},
|
||||
'file': {
|
||||
'level': 'DEBUG',
|
||||
'class': 'logging.handlers.TimedRotatingFileHandler',
|
||||
'class': 'logging.handlers.WatchedFileHandler',
|
||||
'formatter': 'default',
|
||||
'filename': FILE_LOG_PATH,
|
||||
'when': 'D',
|
||||
'interval': 7,
|
||||
'backupCount': 100000000,
|
||||
},
|
||||
'errors_file': {
|
||||
'level': 'WARNING',
|
||||
'class': 'logging.handlers.TimedRotatingFileHandler',
|
||||
'class': 'logging.handlers.WatchedFileHandler',
|
||||
'formatter': 'default',
|
||||
'filename': ERROR_FILE_LOG_PATH,
|
||||
'when': 'D',
|
||||
'interval': 7,
|
||||
'backupCount': 100000000,
|
||||
},
|
||||
},
|
||||
'loggers': {
|
||||
|
|
Loading…
Reference in New Issue