mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-11 09:07:18 +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
|
|
@ -2,15 +2,7 @@ import logging
|
|||
|
||||
|
||||
class PaperlessLogger(logging.StreamHandler):
|
||||
"""
|
||||
A logger smart enough to know to log some kinds of messages to the database
|
||||
for later retrieval in a pretty interface.
|
||||
"""
|
||||
|
||||
def emit(self, record):
|
||||
|
||||
logging.StreamHandler.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
|
||||
from .models import Log
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue