From: Alfredo Deza Date: Fri, 6 Mar 2015 18:35:28 +0000 (-0500) Subject: use the actual line instead of string replacement X-Git-Tag: v1.2.2~9^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F23%2Fhead;p=radosgw-agent.git use the actual line instead of string replacement Signed-off-by: Alfredo Deza --- diff --git a/radosgw_agent/util/decorators.py b/radosgw_agent/util/decorators.py index 1a063a4..2923cf2 100644 --- a/radosgw_agent/util/decorators.py +++ b/radosgw_agent/util/decorators.py @@ -87,7 +87,7 @@ def catches(catch=None, handler=None, exit=True, handle_all=False): str_failure = traceback.format_exc() for line in str_failure.split('\n'): - logger.error("%s" % line) + logger.error(line) sys.exit(1) return newfunc