From 0b65559a8fcd02b761b8be286774fb86b97b1323 Mon Sep 17 00:00:00 2001 From: Frank Winklmeier <frank.winklmeier@cern.ch> Date: Wed, 7 Mar 2018 15:48:31 +0100 Subject: [PATCH] Change default python logging level to INFO Change the default log level of the Logging module from WARNING to INFO. This has zero impact when used within athena.py as the default log level of athena.py is INFO anyway. It will have an impact when used from plain python. But since our developers are used to seeing INFO messages by default this should be a better default value (although it's no longer consistent with the default of the python logging library). --- Control/AthenaCommon/python/Logging.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Control/AthenaCommon/python/Logging.py b/Control/AthenaCommon/python/Logging.py index 28b7700dd48..4476ce951e9 100755 --- a/Control/AthenaCommon/python/Logging.py +++ b/Control/AthenaCommon/python/Logging.py @@ -1,4 +1,4 @@ -# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration +# Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration # File: AthenaCommon/python/Logging.py # Author: Wim Lavrijsen (WLavrijsen@lbl.gov) @@ -84,7 +84,7 @@ class AthenaLogger( logging.getLoggerClass(), object ): # now change the Logger class and make sure to reset the 'root' logger (which # is created on logging import and will otherwise have the old class) logging.setLoggerClass( AthenaLogger ) -logging.root = AthenaLogger( 'root', logging.WARNING ) +logging.root = AthenaLogger( 'root', logging.INFO ) logging.Logger.root = logging.root logging.Logger.manager = logging.Manager( logging.Logger.root ) -- GitLab