Skip to content

the logger verbose level is not maintained after unpickling it #146

@greenlymicael

Description

@greenlymicael

Describe the bug
The logger verbose level is not maintained after unpickling it.
If you check the verbose level saved in model.verbose, it outputs the value correctly, but

To Reproduce
Steps to reproduce the behavior:

  1. Fit a model with verbose=logging.WARN (30)
  2. Pickle and save to a file the fitted model
  3. Unpickle the model
  4. Check the model.logger_.getEffectiveLevel() and see that it's set as logging.DEBUG (10)

Expected behavior

The logger level should be WARN and not DEBUG

Screenshots

Image

Desktop (please complete the following information):

  • OS: MacOS Sonoma 14.7.2

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