Skip to content

Commit 81bb9bd

Browse files
committed
Improve logging for unexpected connection failures in DurableTaskGrpcWorker
1 parent 4954477 commit 81bb9bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/src/main/java/com/microsoft/durabletask/DurableTaskGrpcWorker.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ else if (requestType == RequestCase.HEALTHPING)
191191
} else if (e.getStatus().getCode() == Status.Code.CANCELLED) {
192192
logger.log(Level.INFO, "Durable Task worker has disconnected from {0}.", this.getSidecarAddress());
193193
} else {
194-
logger.log(Level.WARNING, "Unexpected failure connecting to {0}.", this.getSidecarAddress());
194+
logger.log(Level.WARNING, String.format("Unexpected failure connecting to %s", this.getSidecarAddress()), e);
195195
}
196196

197197
// Retry after 5 seconds

0 commit comments

Comments
 (0)