bittensor icon indicating copy to clipboard operation
bittensor copied to clipboard

fix: logging weights correctly in utils/weight_utils.py

Open grantdfoster opened this issue 1 year ago • 1 comments

Bug

#2361

Description of the Change

Any instances where weights are being logged have been changed to bt.logging.debug("weights", *weights). The bug occurs when we attempt to log with bt.logging.debug("weights", weights)

Alternate Designs

The only other alternative was deleting the logging lines - I chose to keep them, but simply log them correctly.

Possible Drawbacks

None.

Verification Process

I have run my validator on our testnet, starting from a completely fresh state file. This means that I saw the validator correctly set weights when there were NO weights to set (i.e. all 1's), and when there WERE weights to set (i.e. miners have done some work and have been scored).

Release Notes

Fixes logging bug where weights were being logged w/o an *

grantdfoster avatar Oct 17 '24 21:10 grantdfoster