From 6c486ab0670717faba699560e06c6c2600a25450 Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Fri, 23 Aug 2013 14:53:38 -0500 Subject: [PATCH] Tweak logging --- teuthology/run_tasks.py | 5 ++--- teuthology/sentry.py | 2 -- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/teuthology/run_tasks.py b/teuthology/run_tasks.py index dc21701697..c849d0fce6 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 1bf92f53b4..3d83a29136 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) -- 2.39.5