Skip to content
This repository has been archived by the owner on Jul 30, 2024. It is now read-only.

Commit

Permalink
Log occurred exception even if it doesn't have cause (#218)
Browse files Browse the repository at this point in the history
* Use warn logging level and expose the exception itself, not the cause

Signed-off-by: Julia Nemtseva <[email protected]>
(cherry picked from commit d77479b)
  • Loading branch information
JuliaIskra authored and gchudnov committed Sep 15, 2023
1 parent ed5f5c3 commit 3d22aa7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/scala/org/zalando/kanadi/api/Subscriptions.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1473,9 +1473,9 @@ case class Subscriptions(baseUri: URI, authTokenProvider: Option[AuthTokenProvid
modifySourceFunction
))
.recoverWith { case NonFatal(e) =>
logger.info(
logger.warn(
s"Reconnecting failed, retry again in ${reconnectDelay.toString()}, SubscriptionId: ${subscriptionId.id.toString}",
e.getCause
e
)
reconnect(subscriptionId,
eventCallback,
Expand Down

0 comments on commit 3d22aa7

Please sign in to comment.