Skip to content

Add handler to "pony.orm" logger does not work #266

Closed
@sio2sio2

Description

@sio2sio2

if a handler is added a "pony.orm" logger, pony continues to print on the screen for debugging. I think it's fixed by replacing the line:

if logging.root.handlers:

with:

if orm_logger.hasHandlers():

or

if sql_logger.hasHandlers():

in pony.orm.core.log_orm() and pony.orm.core.log_sql() functions.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions