Skip to content

Commit 6eff0da

Browse files
Remove duplicative FINEST-level error logging in GrpcExporter
The onError method logged failures at SEVERE (with the exception) and again at FINEST (manually printing the exception via toString). The FINEST log is redundant since any logging framework can render the stack trace from the exception already included in the SEVERE log. Resolves #8098
1 parent 9692c2b commit 6eff0da

File tree

1 file changed

+0
-3
lines changed
  • exporters/common/src/main/java/io/opentelemetry/exporter/internal/grpc

1 file changed

+0
-3
lines changed

exporters/common/src/main/java/io/opentelemetry/exporter/internal/grpc/GrpcExporter.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,6 @@ private void onError(
132132
+ "s. The request could not be executed. Error message: "
133133
+ e.getMessage(),
134134
e);
135-
if (logger.isLoggable(Level.FINEST)) {
136-
logger.log(Level.FINEST, "Failed to export " + type + "s. Details follow: " + e);
137-
}
138135
result.failExceptionally(FailedExportException.grpcFailedExceptionally(e));
139136
}
140137

0 commit comments

Comments
 (0)