mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-08 15:55:31 +01:00
reworked most of the tesseract parser, better logging
This commit is contained in:
parent
a3c71ddad4
commit
d15405ef56
8 changed files with 90 additions and 123 deletions
|
|
@ -239,14 +239,14 @@ LOGGING = {
|
|||
"version": 1,
|
||||
"disable_existing_loggers": False,
|
||||
"handlers": {
|
||||
"consumer": {
|
||||
"dblogger": {
|
||||
"class": "documents.loggers.PaperlessLogger",
|
||||
}
|
||||
},
|
||||
"loggers": {
|
||||
"documents": {
|
||||
"handlers": ["consumer"],
|
||||
"level": os.getenv("PAPERLESS_CONSUMER_LOG_LEVEL", "INFO"),
|
||||
"handlers": ["dblogger"],
|
||||
"level": "DEBUG"
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
@ -260,7 +260,7 @@ OCR_LANGUAGE = os.getenv("PAPERLESS_OCR_LANGUAGE", "eng")
|
|||
OCR_THREADS = int(os.getenv("PAPERLESS_OCR_THREADS", 4))
|
||||
|
||||
# OCR all documents?
|
||||
OCR_ALWAYS = __get_boolean("PAPERLESS_OCR_ALWAYS")
|
||||
OCR_ALWAYS = __get_boolean("PAPERLESS_OCR_ALWAYS", False)
|
||||
|
||||
|
||||
# GNUPG needs a home directory for some reason
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue