mirror of
https://github.com/ceph/ceph
synced 2024-12-24 04:14:07 +00:00
19 lines
288 B
Python
19 lines
288 B
Python
import logging
|
|
from raven import Client
|
|
from .config import config
|
|
|
|
log = logging.getLogger(__name__)
|
|
|
|
client = None
|
|
|
|
|
|
def get_client():
|
|
global client
|
|
if client:
|
|
return client
|
|
|
|
dsn = config.sentry_dsn
|
|
if dsn:
|
|
client = Client(dsn=dsn)
|
|
return client
|