Skip to content

Commit fcd1da7

Browse files
aequitasmxsasha
authored andcommitted
Don't let statsd exceptions flow to sentry if monitoring is disabled
1 parent e7080f2 commit fcd1da7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internetnl/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,7 @@
641641
# connect to resolve is during import and will fail cryptically if it can't.
642642
socket.gethostbyname(STATSD_HOST)
643643
except socket.gaierror:
644-
log.exception("Failed to resolve statsd host, disabling statsd metrics collection.")
644+
log.warning("Failed to resolve statsd host, disabling statsd metrics collection.")
645645
# set to localhost so import of statsd client does not fail
646646
STATSD_HOST = "127.0.0.1"
647647
STATSD_PORT = os.environ.get("STATSD_PORT", "8125")

0 commit comments

Comments
 (0)