Skip to content

Comments

Fix logging.info and state transitions in LoggingMachine#3270

Open
ionodeionode wants to merge 2 commits intoopentensor:stagingfrom
ionodeionode:fix/logging-info-issue-1836
Open

Fix logging.info and state transitions in LoggingMachine#3270
ionodeionode wants to merge 2 commits intoopentensor:stagingfrom
ionodeionode:fix/logging-info-issue-1836

Conversation

@ionodeionode
Copy link

Fixes #1836.

This PR addresses the issue where logging.info and other logging levels were not correctly updating the logger level during state transitions.

Changes:

  • Explicitly set self._logger.setLevel() in before_enable_info, before_enable_debug, etc.
  • Standardized transition methods (disable_info, disable_debug, etc.) to use self.enable_default() to ensure consistent state reset.
  • Updated before_enable_default and before_enable_info to correctly toggle self._stream_formatter.set_trace().

Verified with a test script simulating both CLI flag and manual set_info calls.

ibraheem-abe and others added 2 commits January 29, 2026 16:19
…ved issue opentensor#1836 by explicitly setting logger level and using methods for transitions to ensure state consistency.
@basfroman basfroman changed the base branch from master to staging February 19, 2026 19:51
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.

"logging.info" is still broken from version 6.10.0

2 participants