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 off switch #1704

Merged
merged 1 commit into from
Feb 15, 2024
Merged

logging off switch #1704

merged 1 commit into from
Feb 15, 2024

Conversation

ifrit98
Copy link
Contributor

@ifrit98 ifrit98 commented Feb 14, 2024

  • Allow to toggle bittensor logging on/off
import bittensor as bt
bt.logging.info("Hello Bittensor!")
> 2024-02-14 17:45:34.23 |    INFO    |  Hello Bittensor!
bt.logging.off()
bt.logging.info("Hello Bittensor!")
>
bt.logging.on()
bt.logging.info("Hello Bittensor!")
> 2024-02-14 17:46:01.12 |    INFO    |  Hello Bittensor!

Copy link
Contributor

@eduardogr eduardogr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM :)

@ifrit98 ifrit98 merged commit e38ea9b into staging Feb 15, 2024
12 checks passed
@ifrit98 ifrit98 mentioned this pull request Feb 16, 2024
@unconst unconst deleted the feature/logging-off-flags/phil branch March 27, 2024 20:03
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

Successfully merging this pull request may close these issues.

2 participants