Skip to content

Commit 4a14322

Browse files
author
Roman
committed
LoggingMachine initialization updated to explicitly call both parent constructors
1 parent e51ad47 commit 4a14322

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bittensor/utils/btlogging/loggingmachine.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,8 @@ class LoggingMachine(StateMachine, Logger):
137137

138138
def __init__(self, config: "Config", name: str = BITTENSOR_LOGGER_NAME):
139139
# basics
140-
super(LoggingMachine, self).__init__()
140+
StateMachine.__init__(self)
141+
stdlogging.Logger.__init__(self, name)
141142
self._queue = mp.Queue(-1)
142143
self._primary_loggers = {name}
143144
self._config = self._extract_logging_config(config)

0 commit comments

Comments
 (0)