Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
greenlymicael opened this issue Feb 26, 2025 · 0 comments
Open

Comments

@greenlymicael
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant