Skip to content

Commit 18388f2

Browse files
committed
widen info state hashing catch
1 parent d4d2069 commit 18388f2

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

communication/src/main/java/datadog/communication/ddagent/DDAgentFeaturesDiscovery.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
import datadog.trace.api.telemetry.LogCollector;
2121
import datadog.trace.util.Strings;
2222
import java.nio.ByteBuffer;
23-
import java.security.NoSuchAlgorithmException;
2423
import java.util.HashSet;
2524
import java.util.List;
2625
import java.util.Map;
@@ -311,7 +310,7 @@ private boolean processInfoResponse(State newState, String response) {
311310
}
312311
try {
313312
newState.state = Strings.sha256(response);
314-
} catch (NoSuchAlgorithmException ex) {
313+
} catch (Throwable ex) {
315314
log.debug(
316315
"Failed to hash trace agent /info response. Will probe {}", newState.traceEndpoint, ex);
317316
}

0 commit comments

Comments
 (0)