]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
Use teuthology.config
authorZack Cerza <zack@cerza.org>
Fri, 23 Aug 2013 16:40:22 +0000 (11:40 -0500)
committerZack Cerza <zack@cerza.org>
Fri, 23 Aug 2013 16:40:22 +0000 (11:40 -0500)
teuthology/sentry.py

index ecbd56fb236e0dedcc475f61fb1315350a6389d6..1bf92f53b4a7d8b458e1cd2c69c41d50e970569f 100644 (file)
@@ -1,13 +1,20 @@
+import logging
 from raven import Client
+from .config import config
+
+log = logging.getLogger(__name__)
 
 client = None
 
-def get_client(ctx):
+
+def get_client():
     global client
     if client:
+        log.debug("Found client, reusing")
         return client
-    dsn = ctx.teuthology_config.get('sentry_dsn')
+
+    log.debug("Getting sentry client")
+    dsn = config.sentry_dsn
     if dsn:
         client = Client(dsn=dsn)
         return client
-