Skip to content

Commit 7fea4c3

Browse files
committed
fix warning in compilation
1 parent 9c9dc4a commit 7fea4c3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

inferred-spans/src/main/java/io/opentelemetry/contrib/inferredspans/internal/SamplingProfiler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ private void profile(Duration profilingDuration) throws Exception {
461461
if (e.getMessage() != null && e.getMessage().contains("Profiler is not active")) {
462462
logger.fine("Profiler already stopped");
463463
} else {
464-
throw e;
464+
logger.log(Level.WARNING, "Failure shutting down profiler", e);
465465
}
466466
}
467467
}

0 commit comments

Comments
 (0)