Skip to content

Commit d30cae0

Browse files
author
rlau
committed
RL - Currently, in grpc client if an error throws it would be logged. However the error has a constructor where a throwable is passed as an argument. As a result, the {} in the message will never get replaced. The idea is to log the error in the simple message, as well as log the stack trace.
1 parent 57b8d05 commit d30cae0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/java/com/expedia/www/haystack/client/dispatchers/clients/BaseGrpcClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public void onCompleted() {
116116
@Override
117117
public void onError(Throwable t) {
118118
onErrorCounter.increment();
119-
LOGGER.error("Dispatching span failed with error: {}", t);
119+
LOGGER.error("Dispatching span failed with error: " + t, t);
120120
}
121121

122122
@Override

0 commit comments

Comments
 (0)