mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-12 17:47:08 +01:00
Configures logging to capture celery and kombu debugging to library
This commit is contained in:
parent
e0d5fd9290
commit
7ad21e0e45
1 changed files with 9 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue