pastas / pastastore

:spaghetti: :convenience_store: Tools for managing timeseries and Pastas models
https://pastastore.readthedocs.io
MIT License
15 stars 4 forks source link

Pastastore sets log-level of Pastas to Error #116

Closed rubencalje closed 4 months ago

rubencalje commented 4 months ago

Not sure if this is intended behavior, but Paststore sets the log-level to Error, on importing pastastore (in yaml_interface.py).

Maybe it is better to remove these two logger-lines from yaml_interface.py:

ps.logger.setLevel("ERROR")

logging.basicConfig(level="INFO")

What do you think @dbrakenhoff ?

dbrakenhoff commented 4 months ago

This was probably somewhat intentional, because I wanted the YAML logging to be uninterrupted by other modules, but doing so by silencing pastas entirely when importing pastastore was probably not what I had in mind.

dbrakenhoff commented 4 months ago

fixed by 8f45fb9d66111eaf8112768ee22555b0ad3c2927

rubencalje commented 4 months ago

Thanks!