mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -05:00
renamed logger
This commit is contained in:
parent
7d282a4e4e
commit
b0a519fd6b
@ -1,7 +1,7 @@
|
||||
import logging
|
||||
|
||||
|
||||
class PaperlessLogger(logging.StreamHandler):
|
||||
class PaperlessHandler(logging.Handler):
|
||||
def emit(self, record):
|
||||
# We have to do the import here or Django will barf when it tries to
|
||||
# load this because the apps aren't loaded at that point
|
||||
|
@ -239,13 +239,16 @@ LOGGING = {
|
||||
"version": 1,
|
||||
"disable_existing_loggers": False,
|
||||
"handlers": {
|
||||
"dblogger": {
|
||||
"class": "documents.loggers.PaperlessLogger",
|
||||
"dbhandler": {
|
||||
"class": "documents.loggers.PaperlessHandler",
|
||||
},
|
||||
"streamhandler": {
|
||||
"class": "logging.StreamHandler"
|
||||
}
|
||||
},
|
||||
"loggers": {
|
||||
"documents": {
|
||||
"handlers": ["dblogger"],
|
||||
"handlers": ["dbhandler", "streamhandler"],
|
||||
"level": "DEBUG"
|
||||
},
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user