Skip to content

Commit

Permalink
add logging type to the logging machine class
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-opentensor committed Sep 9, 2024
1 parent b7252cb commit 1785615
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bittensor/btlogging/loggingmachine.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
import os
import sys
from logging.handlers import QueueHandler, QueueListener, RotatingFileHandler
from logging import Logger
from typing import NamedTuple

from statemachine import State, StateMachine
Expand All @@ -55,7 +56,7 @@ class LoggingConfig(NamedTuple):
logging_dir: str


class LoggingMachine(StateMachine):
class LoggingMachine(StateMachine, Logger):
"""Handles logger states for bittensor and 3rd party libraries."""

Default = State(initial=True)
Expand Down

0 comments on commit 1785615

Please sign in to comment.