Skip to content

DEBUG level is assigned to the wrong logger #127

@mosalx

Description

@mosalx

We have a project containing a module named "common" in the top level.
Importing docling in this module causes DEBUG logs to be emitted, which we did not configure explicitly.
This behavior was traced to this statement:

logger = s.get_custom_logger("common", LOG_LEVEL)

which assign DEBUG logging level to a package/module that "docing-ibm-models" does not own.
Instead of "common", there should be a fully qualified path, which in this case is docling_ibm_models.tableformer.common. Suggested change:

logger = s.get_custom_logger(__name__, LOG_LEVEL)

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions