You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GH-2212: Log listener exception in retry topic flow (#2213)
* GH-2212: Log listener ex. in retry topic flow
Resolves#2212
As in Retry Topic flow recovery is successful, the exception thrown by the listener was never being logged.
Now it logs at DEBUG level for intermediate retries and ERROR level when retries are exhausted.
Also some polishing in TimestampedException as it was cluttering the stacktrace with duplicated information from cause.getMessage(). Now it logs the time when the exception occurred.
* Address TimestampedException review suggestions
Add ListenerExceptionLoggingStrategy
Add unit tests
* Address review comments
Copy file name to clipboardExpand all lines: spring-kafka/src/main/java/org/springframework/kafka/listener/adapter/KafkaBackoffAwareMessageListenerAdapter.java
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2018-2021 the original author or authors.
2
+
* Copyright 2018-2022 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
0 commit comments