Skip to content

Commit 4eed5d7

Browse files
authored
Avoid UnsatisfiedLinkError when constructing statsd client (#9789)
1 parent 664b9a4 commit 4eed5d7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

communication/src/main/java/datadog/communication/monitor/DDAgentStatsDConnection.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,6 @@ private void doConnect() {
162162
log.debug("StatsD connected to {}", statsDAddress());
163163
}
164164
} catch (final Exception e) {
165-
log.error("Unable to create StatsD client - {}", statsDAddress(), e);
166165
if (retries.getAndIncrement() < MAX_RETRIES) {
167166
if (log.isDebugEnabled()) {
168167
log.debug(
@@ -173,6 +172,8 @@ private void doConnect() {
173172
} else {
174173
log.debug("Max retries have been reached. Will not attempt again.");
175174
}
175+
} catch (Throwable t) {
176+
log.error("Unable to create StatsD client - {} - Will not retry", statsDAddress(), t);
176177
}
177178
}
178179
}

0 commit comments

Comments
 (0)