Skip to content

Commit cba0360

Browse files
authored
Remove: sentry support (#904)
1 parent 4d3cc47 commit cba0360

File tree

3 files changed

+123
-190
lines changed

3 files changed

+123
-190
lines changed

ospd_openvas/daemon.py

+1-13
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
from datetime import datetime
1616

1717
from pathlib import Path
18-
from os import geteuid, environ
18+
from os import geteuid
1919

2020
import psutil
2121

@@ -40,18 +40,6 @@
4040
from ospd_openvas.vthelper import VtHelper
4141
from ospd_openvas.messaging.mqtt import MQTTClient, MQTTDaemon, MQTTSubscriber
4242

43-
SENTRY_DSN_OSPD_OPENVAS = environ.get("SENTRY_DSN_OSPD_OPENVAS")
44-
if SENTRY_DSN_OSPD_OPENVAS:
45-
# pylint: disable=import-error
46-
import sentry_sdk
47-
48-
sentry_sdk.init( # pylint: disable=abstract-class-instantiated
49-
SENTRY_DSN_OSPD_OPENVAS,
50-
traces_sample_rate=1.0,
51-
server_name=environ.get('SENTRY_SERVER_NAME'),
52-
environment=environ.get('SENTRY_ENVIRONMENT'),
53-
)
54-
5543
logger = logging.getLogger(__name__)
5644

5745

0 commit comments

Comments
 (0)