OCR-D / core

Collection of OCR-related python tools and wrappers from @OCR-D
https://ocr-d.de/core/
Apache License 2.0
117 stars 31 forks source link

OCRD_LOGGING_DEBUG=True does not work #1230

Closed bertsky closed 1 month ago

bertsky commented 1 month ago

The docstring says:

    OCRD_LOGGING_DEBUG
      Print information about the logging setup to
      STDERR (Default: "False")

Naturally, one would expect it would be enabled via True – which is not the case:

 File "/data/ocr-d/ocrd_all/core/src/ocrd_utils/logging.py", line 110, in <module>
    def setOverrideLogLevel(lvl, silent=not config.OCRD_LOGGING_DEBUG):
  File "/data/ocr-d/ocrd_all/core/src/ocrd_utils/config.py", line 88, in __getattr__
    raise ValueError(f"'{name}' set to invalid value '{raw_value}'")
ValueError: 'OCRD_LOGGING_DEBUG' set to invalid value 'True'