From 0630c9df304e20db07655e27c79bf8ca2fa02cb6 Mon Sep 17 00:00:00 2001 From: Walter Lampl <Walter.Lampl@cern.ch> Date: Tue, 23 May 2017 09:23:31 +0200 Subject: [PATCH] more explicit warnings about duplicate properties --- Control/AthenaCommon/python/JobProperties.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Control/AthenaCommon/python/JobProperties.py b/Control/AthenaCommon/python/JobProperties.py index ddda7f7aadb..751de3c14f5 100755 --- a/Control/AthenaCommon/python/JobProperties.py +++ b/Control/AthenaCommon/python/JobProperties.py @@ -582,8 +582,8 @@ class JobPropertyContainer (object): setattr(self,new_container.__name__, new_container(self._context_name)) else: - self._log.warning('The container %s is already in', - new_container.__name__) + self._log.warning('The container %s is already in %s', + new_container.__name__,self.__name__) else: self._log.error('You are not adding a JobPropertyContainer ') @@ -597,8 +597,8 @@ class JobPropertyContainer (object): if not(new_flag.__name__ in self.__dict__.keys()): setattr(self,new_flag.__name__,new_flag(self._context_name)) else: - self._log.warning('The flag %s is already in', - new_flag.__name__) + self._log.warning('The flag %s is already in %s', + new_flag.__name__, self.__name__) else: self._log.error('You are not adding a JobProperty ') -- GitLab