Add information to log messages #1469
HiranChaudhuri
started this conversation in
Ideas
Replies: 1 comment
-
ocrmypdf does track this information. Thread local storage is used to track which page number a thread is assigned to, so all messages sent from that thread contain the assigned page number. Then a logging filter is used to retrieve this information and edit the log message. Most likely paperless-ngx is not setting up the filter when it configures ocrmypdf, since loggers don't automatically do this. See |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello there.
I came to using ocrmypdf through the paperless-ngx project. Ocrmypdf provides essential functionality, likely not only to paperless. A good job you've been doing here.
Some of the documents that I send to paperless error out, and I am trying to sort out the reasons. Often I read in the logfile lines like
Knowing that ocrmypdf processes several pages in parallel I have no clue which of the messages relates to which page of the processed document.
Would it be possible to add such information?
Beta Was this translation helpful? Give feedback.
All reactions