From: Zack Cerza Date: Fri, 23 Aug 2013 19:53:38 +0000 (-0500) Subject: Tweak logging X-Git-Tag: 1.1.0~1926^2~15 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=6c486ab0670717faba699560e06c6c2600a25450;p=teuthology.git Tweak logging --- diff --git a/teuthology/run_tasks.py b/teuthology/run_tasks.py index dc217016..c849d0fc 100644 --- a/teuthology/run_tasks.py +++ b/teuthology/run_tasks.py @@ -31,12 +31,11 @@ def run_tasks(tasks, ctx): ctx.summary['success'] = False if 'failure_reason' not in ctx.summary: ctx.summary['failure_reason'] = str(e) - msg = 'Saw exception from tasks.' + log.exception('Saw exception from tasks.') sentry = get_sentry_client() if sentry: exc_id = sentry.captureException() - msg += " Sentry id %s" % exc_id - log.exception(msg) + log.exception(" Sentry id %s" % exc_id) if ctx.config.get('interactive-on-error'): from .task import interactive log.warning('Saw failure, going into interactive mode...') diff --git a/teuthology/sentry.py b/teuthology/sentry.py index 1bf92f53..3d83a291 100644 --- a/teuthology/sentry.py +++ b/teuthology/sentry.py @@ -10,10 +10,8 @@ client = None def get_client(): global client if client: - log.debug("Found client, reusing") return client - log.debug("Getting sentry client") dsn = config.sentry_dsn if dsn: client = Client(dsn=dsn)