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

Bit 611 refactor validator logging #1040

Merged
merged 25 commits into from
Jan 10, 2023
Merged

Conversation

isabella618033
Copy link
Contributor

@isabella618033 isabella618033 commented Jan 4, 2023

The idea is to separate the concern for logging formatting from the major stats calculation in the neuron/nucleus

(1) the log_utilities.py are currently placed in bittensor/_neuron/text/log_utilities.py which is much closer to the validator
(2) all the tables/console print are encapsulated in the class ValidatorLogger() , so when you are calling the functions in neuron/nucleus, it would be like self.vlogger.func()
(3) all the prometheus log are encapsulated in the class ValidatorPrometheus() , so when you are calling the functions in neuron/nucleus, it would be like self.vlogger.prometheus.func()
(4) Added doc strings

@isabella618033 isabella618033 changed the title Bit 611 validator logging Bit 611 refactor validator logging Jan 6, 2023
@isabella618033 isabella618033 marked this pull request as ready for review January 9, 2023 14:49
@isabella618033 isabella618033 merged commit ba1ee5c into nobunaga Jan 10, 2023
@ifrit98 ifrit98 deleted the BIT-611_validator_logging branch May 24, 2023 14:46
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