mirror of
https://github.com/ceph/ceph
synced 2024-12-26 21:43:10 +00:00
14 lines
235 B
Python
14 lines
235 B
Python
from raven import Client
|
|
|
|
client = None
|
|
|
|
def get_client(ctx):
|
|
global client
|
|
if client:
|
|
return client
|
|
dsn = ctx.teuthology_config.get('sentry_dsn')
|
|
if dsn:
|
|
client = Client(dsn=dsn)
|
|
return client
|
|
|