Skip to content

Log messages print in the wrong Jupyter notebook cell #1951

@rossjjennings

Description

@rossjjennings

In a Jupyter notebook, after calling pint.logging.setup(), new log messages always print in the cell where pint.logging.setup() was called, instead of the cell where the log message actually originated. This is not true for loguru out of the box, but seems to be caused by the default configuration used by PINT. I think I've tracked it down to the use of enqueue=True here. If I leave out enqueue=True, I can specify a PINT-like logger configuration without getting this behavior.

Metadata

Metadata

Assignees

No one assigned

    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