From 08c008534a860689eccda592ca3caa95d4fb81be Mon Sep 17 00:00:00 2001 From: Marcel Stimberg Date: Wed, 26 Jun 2024 16:31:49 +0200 Subject: [PATCH] Do not log general python warnings to file MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Mostly because it messes with the logging tests in our test suiteā€¦ --- brian2/utils/logger.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/brian2/utils/logger.py b/brian2/utils/logger.py index da65bbf24..c4a5b0772 100644 --- a/brian2/utils/logger.py +++ b/brian2/utils/logger.py @@ -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(