mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-11 10:00:48 -05:00
Configures logging to capture celery and kombu debugging to library
This commit is contained in:
parent
e0d5fd9290
commit
7ad21e0e45
@ -611,11 +611,20 @@ LOGGING = {
|
|||||||
"maxBytes": LOGROTATE_MAX_SIZE,
|
"maxBytes": LOGROTATE_MAX_SIZE,
|
||||||
"backupCount": LOGROTATE_MAX_BACKUPS,
|
"backupCount": LOGROTATE_MAX_BACKUPS,
|
||||||
},
|
},
|
||||||
|
"file_celery": {
|
||||||
|
"class": "concurrent_log_handler.ConcurrentRotatingFileHandler",
|
||||||
|
"formatter": "verbose",
|
||||||
|
"filename": os.path.join(LOGGING_DIR, "celery.log"),
|
||||||
|
"maxBytes": LOGROTATE_MAX_SIZE,
|
||||||
|
"backupCount": LOGROTATE_MAX_BACKUPS,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
"root": {"handlers": ["console"]},
|
"root": {"handlers": ["console"]},
|
||||||
"loggers": {
|
"loggers": {
|
||||||
"paperless": {"handlers": ["file_paperless"], "level": "DEBUG"},
|
"paperless": {"handlers": ["file_paperless"], "level": "DEBUG"},
|
||||||
"paperless_mail": {"handlers": ["file_mail"], "level": "DEBUG"},
|
"paperless_mail": {"handlers": ["file_mail"], "level": "DEBUG"},
|
||||||
|
"celery": {"handlers": ["file_celery"], "level": "DEBUG"},
|
||||||
|
"kombu": {"handlers": ["file_celery"], "level": "DEBUG"},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user