Skip to content

Implement warning logging level#2323

Merged
ibraheem-abe merged 284 commits intostagingfrom
feat/roman/logging-warning
Oct 1, 2024
Merged

Implement warning logging level#2323
ibraheem-abe merged 284 commits intostagingfrom
feat/roman/logging-warning

Conversation

@basfroman
Copy link
Collaborator

@basfroman basfroman commented Sep 27, 2024

Warning logging level implemented. logging.INFO is the default level now. When importing a bittensor, the Warning level is activated automatically.

There are several options to change the level to INFO in the python script:

  1. bittensor.logging.set_info()
  2. bittensor.logging.set_default()

There are several options to change the level to WARNING in the python script:

  1. bittensor.warning()
  2. bittensor.logging.set_warning()

Roman and others added 30 commits August 1, 2024 17:50
…thin the bittensor package, but is actively used by the community.
…irect imports of modules and other objects. It helped to avoid namespace conflicts.
…y`, since it is used directly from utils.
Part 2: Redesign, fix namespace conflicts, remove btcli
…se' into feat/roman/staging-into-btsdk

# Conflicts:
#	bittensor/core/axon.py
#	bittensor/core/dendrite.py
#	bittensor/core/stream.py
#	bittensor/extrinsics/delegation.py
#	requirements/prod.txt
#	tests/unit_tests/test_axon.py
#	tests/unit_tests/test_logging.py
@basfroman basfroman requested a review from a team September 27, 2024 18:40
@basfroman basfroman self-assigned this Sep 27, 2024
@basfroman basfroman added enhancement New feature or request bittensor labels Sep 27, 2024
@basfroman basfroman changed the base branch from btsdk to staging October 1, 2024 17:38
@basfroman basfroman changed the base branch from staging to btsdk October 1, 2024 17:39
@basfroman basfroman changed the base branch from btsdk to staging October 1, 2024 17:40
@basfroman basfroman changed the base branch from staging to btsdk October 1, 2024 17:40
# Conflicts:
#	bittensor/__init__.py
#	bittensor/core/subtensor.py
#	bittensor/utils/deprecated.py
#	requirements/prod.txt
#	setup.py
#	tests/e2e_tests/conftest.py
#	tests/e2e_tests/test_axon.py
#	tests/e2e_tests/test_commit_weights.py
#	tests/e2e_tests/test_dendrite.py
#	tests/e2e_tests/test_incentive.py
#	tests/e2e_tests/test_liquid_alpha.py
#	tests/e2e_tests/test_metagraph.py
#	tests/e2e_tests/test_subtensor_functions.py
#	tests/e2e_tests/test_transfer.py
@basfroman basfroman changed the base branch from btsdk to staging October 1, 2024 17:57
@ibraheem-abe ibraheem-abe merged commit 27bf3db into staging Oct 1, 2024
@ibraheem-abe ibraheem-abe deleted the feat/roman/logging-warning branch October 1, 2024 18:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bittensor enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants