Skip to content

Replace rich.console to btlogging.loggin#2377

Merged
basfroman merged 10 commits intostagingfrom
feat/roman/replase-console-with-btlogging
Nov 4, 2024
Merged

Replace rich.console to btlogging.loggin#2377
basfroman merged 10 commits intostagingfrom
feat/roman/replase-console-with-btlogging

Conversation

@basfroman
Copy link
Collaborator

In module bittensor/utils/registration.py I left the console, because a lot of data output is used. This will create a lot of logging.

@basfroman basfroman requested a review from a team November 1, 2024 05:41
@basfroman basfroman self-assigned this Nov 1, 2024
Roman added 2 commits November 4, 2024 09:06
…-console-with-btlogging

# Conflicts:
#	bittensor/core/extrinsics/prometheus.py
Copy link
Contributor

@ibraheem-abe ibraheem-abe left a comment

Choose a reason for hiding this comment

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

Few nits but overall lgtm

Copy link
Contributor

@thewhaleking thewhaleking left a comment

Choose a reason for hiding this comment

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

Is there a reason to use the colours/emojis in logging?

@basfroman
Copy link
Collaborator Author

Is there a reason to use the colours/emojis in logging?

It's beautiful and informative for users

@basfroman basfroman merged commit ffbc2d3 into staging Nov 4, 2024
@basfroman basfroman deleted the feat/roman/replase-console-with-btlogging branch November 4, 2024 17:40
This was referenced Nov 5, 2024
ibraheem-abe pushed a commit that referenced this pull request Nov 6, 2024
* replace `rich.console` to `btlogging.logging`

* update requirements

* use whole path import

* fix some logging

* fix registration.py

* ruff

* del prometheus.py

* fix review comments
This was referenced Nov 6, 2024
basfroman added a commit that referenced this pull request Nov 13, 2024
* Expands the type registry to include all the available options (#2353)

Expands the type registry to include all the available options

* add `Subtensor.register`, `Subtensor.difficulty` and related staff with tests (#2352)

* add `bittensor.core.subtensor.Subtensor.register`, `bittensor.core.subtensor.Subtensor.difficulty` and related staff with tests

* remove commented code

* update `_terminate_workers_and_wait_for_exit` by review

* added to Subtensor: `burned_register`, `get_subnet_burn_cost`, `recycle` and related extrinsics (#2359)

* added to Subtensor: `burned_register`, `get_subnet_burn_cost`, `recycle` and related extrinsics

* formatter

* Update bittensor/core/extrinsics/registration.py

Co-authored-by: Benjamin Himes <37844818+thewhaleking@users.noreply.github.com>

---------

Co-authored-by: Benjamin Himes <37844818+thewhaleking@users.noreply.github.com>

* Poem "Risen from the Past". Act 3. (#2363)

* add `get_delegate_by_hotkey`, update `DelegateInfo` in chain data

* add `root_register_extrinsic`, `set_root_weights_extrinsic` and related stuff

* add `Subtensor.get_all_subnets_info` method and related stuff

* add `Subtensor.get_delegate_take` method and tests

* ruff

* remove unused import

* default port from 9946 to 9944 (#2376)

* remove unused prometheus extrinsic (#2378)

* Replace rich.console to btlogging.loggin (#2377)

* replace `rich.console` to `btlogging.logging`

* update requirements

* use whole path import

* fix some logging

* fix registration.py

* ruff

* del prometheus.py

* fix review comments

* Merge pull request #2382 from opentensor/feat/roman/remove-prompt-from-sdk

Avoid using `prompt` in SDK

* Handle SSL Error on Connection (#2384)

* Add `subvortex` subnet and tests (#2395)

* add `subvortex` subnet and tests

* ruff

* Bumps version and updates changelog

---------

Co-authored-by: Benjamin Himes <37844818+thewhaleking@users.noreply.github.com>
Co-authored-by: ibraheem-opentensor <165814940+ibraheem-opentensor@users.noreply.github.com>
Co-authored-by: ibraheem-opentensor <ibraheem@opentensor.dev>
thewhaleking added a commit that referenced this pull request Nov 14, 2024
* Expands the type registry to include all the available options (#2353)

Expands the type registry to include all the available options

* add `Subtensor.register`, `Subtensor.difficulty` and related staff with tests (#2352)

* add `bittensor.core.subtensor.Subtensor.register`, `bittensor.core.subtensor.Subtensor.difficulty` and related staff with tests

* remove commented code

* update `_terminate_workers_and_wait_for_exit` by review

* added to Subtensor: `burned_register`, `get_subnet_burn_cost`, `recycle` and related extrinsics (#2359)

* added to Subtensor: `burned_register`, `get_subnet_burn_cost`, `recycle` and related extrinsics

* formatter

* Update bittensor/core/extrinsics/registration.py

Co-authored-by: Benjamin Himes <37844818+thewhaleking@users.noreply.github.com>

---------

Co-authored-by: Benjamin Himes <37844818+thewhaleking@users.noreply.github.com>

* Poem "Risen from the Past". Act 3. (#2363)

* add `get_delegate_by_hotkey`, update `DelegateInfo` in chain data

* add `root_register_extrinsic`, `set_root_weights_extrinsic` and related stuff

* add `Subtensor.get_all_subnets_info` method and related stuff

* add `Subtensor.get_delegate_take` method and tests

* ruff

* remove unused import

* default port from 9946 to 9944 (#2376)

* remove unused prometheus extrinsic (#2378)

* Replace rich.console to btlogging.loggin (#2377)

* replace `rich.console` to `btlogging.logging`

* update requirements

* use whole path import

* fix some logging

* fix registration.py

* ruff

* del prometheus.py

* fix review comments

* Merge pull request #2382 from opentensor/feat/roman/remove-prompt-from-sdk

Avoid using `prompt` in SDK

* Handle SSL Error on Connection (#2384)

* Add `subvortex` subnet and tests (#2395)

* add `subvortex` subnet and tests

* ruff

* Bumps version and updates changelog

* bumping up version

* Update CHANGELOG.md

* bumping version

* Update CHANGELOG.md

with 8.3.1

* update docker version in config.yml

* update docker version in config.yml

* remove docker job in config.yml

* remove docker job in config.yml 2

---------

Co-authored-by: Roman <167799377+roman-opentensor@users.noreply.github.com>
Co-authored-by: ibraheem-opentensor <165814940+ibraheem-opentensor@users.noreply.github.com>
Co-authored-by: ibraheem-opentensor <ibraheem@opentensor.dev>
Co-authored-by: Roman <roman@opentensor.dev>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants