]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
Tweak logging
authorZack Cerza <zack@cerza.org>
Fri, 23 Aug 2013 19:53:38 +0000 (14:53 -0500)
committerZack Cerza <zack@cerza.org>
Mon, 26 Aug 2013 21:17:31 +0000 (16:17 -0500)
teuthology/run_tasks.py
teuthology/sentry.py

index dc21701697ebe027f914003b54f21b71b0a64483..c849d0fce6494481354eecb915705306993b24c0 100644 (file)
@@ -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...')
index 1bf92f53b4a7d8b458e1cd2c69c41d50e970569f..3d83a2913618600c3aaf0d3f8d56aad16dfeb2a0 100644 (file)
@@ -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)