Skip to content

Commit

Permalink
Do not log general python warnings to file
Browse files Browse the repository at this point in the history
Mostly because it messes with the logging tests in our test suite…
  • Loading branch information
mstimberg committed Jun 26, 2024
1 parent 16ea863 commit 08c0085
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions brian2/utils/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -697,8 +697,6 @@ def initialize():
# interface...
warn_logger = logging.getLogger("py.warnings")
warn_logger.addHandler(BrianLogger.console_handler)
if BrianLogger.file_handler is not None:
warn_logger.addHandler(BrianLogger.file_handler)

# Put some standard info into the log file
logger.log(
Expand Down

0 comments on commit 08c0085

Please sign in to comment.