From 8b59aed5ac2aca8731229aef841895076af22a33 Mon Sep 17 00:00:00 2001 From: Walter Lampl <Walter.Lampl@cern.ch> Date: Wed, 16 Dec 2020 11:21:11 +0100 Subject: [PATCH] make ComponentAccumulator.conf2toConfigurable less verbose --- .../python/ComponentAccumulator.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Control/AthenaConfiguration/python/ComponentAccumulator.py b/Control/AthenaConfiguration/python/ComponentAccumulator.py index b08120e3ecf..76da75a712e 100644 --- a/Control/AthenaConfiguration/python/ComponentAccumulator.py +++ b/Control/AthenaConfiguration/python/ComponentAccumulator.py @@ -884,7 +884,7 @@ def conf2toConfigurable( comp, indent="", suppressDupes=False ): _log.warning( "%sComponent: \"%s\" is of type string, no conversion, some properties possibly not set?", indent, comp ) return comp - _log.info( "%sConverting from GaudiConfig2 object %s type %s", indent, compName(comp), comp.__class__.__name__ ) + _log.debug( "%sConverting from GaudiConfig2 object %s type %s", indent, compName(comp), comp.__class__.__name__ ) def __alreadyConfigured( instanceName ): from AthenaCommon.Configurable import Configurable @@ -1018,14 +1018,14 @@ def conf2toConfigurable( comp, indent="", suppressDupes=False ): pvalue=pvalue.data if pname not in alreadySetProperties: - _log.info( "%sAdding property: %s for %s", indent, pname, newConf2Instance.getName() ) + _log.debug( "%sAdding property: %s for %s", indent, pname, newConf2Instance.getName() ) try: setattr(existingConfigurableInstance, pname, pvalue) except AttributeError: _log.info("%s Could not set attribute. Type of existingConfigurableInstance %s.",indent, type(existingConfigurableInstance) ) raise elif alreadySetProperties[pname] != pvalue: - _log.info( "%sMerging property: %s for %s", indent, pname, newConf2Instance.getName() ) + _log.debug( "%sMerging property: %s for %s", indent, pname, newConf2Instance.getName() ) # create surrogate clone = newConf2Instance.getInstance("Clone") setattr(clone, pname, alreadySetProperties[pname]) @@ -1041,10 +1041,10 @@ def conf2toConfigurable( comp, indent="", suppressDupes=False ): setattr(existingConfigurableInstance, pname, updatedPropValue) del clone - _log.info("%s invoked GaudiConf2 semantics to merge the %s and the %s to %s " - "for property %s of %s", - indent, alreadySetProperties[pname], pvalue, pname, - updatedPropValue, existingConfigurable.getFullName()) + _log.debug("%s invoked GaudiConf2 semantics to merge the %s and the %s to %s " + "for property %s of %s", + indent, alreadySetProperties[pname], pvalue, pname, + updatedPropValue, existingConfigurable.getFullName()) _log.debug( "%s Conf2 Full name: %s ", indent, comp.getFullJobOptName() ) existingConfigurable = __alreadyConfigured( comp.name ) -- GitLab