Skip to content

Commit a1ba77f

Browse files
committed
update error message
1 parent 6f63548 commit a1ba77f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

sdk-extensions/autoconfigure/src/main/java/io/opentelemetry/sdk/autoconfigure/AutoConfiguredOpenTelemetrySdkBuilder.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -639,8 +639,7 @@ Thread shutdownHook(OpenTelemetrySdk sdk) {
639639
} catch (NoClassDefFoundError e) {
640640
if (IS_MAVEN) {
641641
// logging deps might not be on the classpath at this point
642-
System.out.printf(
643-
"%s Flush failed during shutdown: %s\n", Level.WARNING, e.getMessage());
642+
System.out.printf("%s Flush failed during shutdown: %s%n", Level.WARNING, e);
644643
return;
645644
}
646645
throw e;

0 commit comments

Comments
 (0)