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

Logging in interactive settings is verbose and not configurable #283

Open
collijk opened this issue Feb 25, 2023 · 1 comment
Open

Logging in interactive settings is verbose and not configurable #283

collijk opened this issue Feb 25, 2023 · 1 comment
Assignees
Labels

Comments

@collijk
Copy link
Member

collijk commented Feb 25, 2023

Working in a notebook or REPL with vivarium simulations is pretty unpleasant. The logging level is set to DEBUG by default, which throws a bunch of not very helpful information at the user. It's also not configurable in any way. After tackling #282, the next thing to do should be to allow user level configuration of the logging and change the default level in the interactive setting to be much less noisy.

@aflaxman
Copy link
Member

Working in a notebook or REPL with vivarium simulations is pretty unpleasant. The logging level is set to DEBUG by default, which throws a bunch of not very helpful information at the user. It's also not configurable in any way. After tackling #282, the next thing to do should be to allow user level configuration of the logging and change the default level in the interactive setting to be much less noisy.

In case it is helpful, I have been using the following code snippet to suppress DEBUG messages when I work in a notebook sometimes:

# all the debugging logs are annoying... do this to suppress them:
import vivarium.interface.utilities
vivarium.interface.utilities.configure_logging_to_terminal(verbose=False)

This was referenced Feb 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants