Skip to content

Commit

Permalink
Making sure connection errors don't create a new message signature ev…
Browse files Browse the repository at this point in the history
…ery single time (#477)

Co-authored-by: Sundaram Ananthanarayanan <[email protected]>
  • Loading branch information
sundargates and sundargates authored Jul 14, 2023
1 parent 39dcbbe commit 4f2ed74
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -433,10 +433,11 @@ public Observable<HttpClientResponse<E>> call(Integer attempts) {
)
.doOnNext((HttpClientResponse<E> response) -> checkResponseIsSuccessful(response))
.doOnError((Throwable error) -> {
logger.error(String.format(
"Connecting to server %s failed: %s",
clientContext.getServer(),
error.getMessage()), error);
logger.error(
"Connecting to server {} failed: {}",
clientContext.getServer(),
error.getMessage(),
error);
SUBSCRIPTION_FAILED.newEvent(observer, clientContext.getServer());
subscriptionFailedCounter.increment();
logger.info("server disconnected onError2: " + clientContext.getServer());
Expand Down

0 comments on commit 4f2ed74

Please sign in to comment.