Commit 01e4d91
authored
GH-3122: Log MessageRejectedWhileStoppingException as info in DMLC
Fixed the issue `MessageRejectedWhileStoppingException` should not lead to an error log in all cases
Fixes: #3122
The `MessageRejectedWhileStoppingException` in the `DirectMessageListenerContainer` was always logged at the error level,
even though it is expected during an orderly shutdown and does not indicate a real error.
Now, when this exception occurs, it is logged at the info level, reducing unnecessary error noise in logs.
* In `DirectMessageListenerContainer.callExecuteListener()`, exceptions of type `MessageRejectedWhileStoppingException` are now logged at info level.
All other exceptions continue to be logged as errors.
Signed-off-by: Madan H K <[email protected]>1 parent 2823d8d commit 01e4d91
File tree
1 file changed
+6
-1
lines changed- spring-rabbit/src/main/java/org/springframework/amqp/rabbit/listener
1 file changed
+6
-1
lines changedLines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1223 | 1223 | | |
1224 | 1224 | | |
1225 | 1225 | | |
1226 | | - | |
| 1226 | + | |
| 1227 | + | |
| 1228 | + | |
| 1229 | + | |
| 1230 | + | |
| 1231 | + | |
1227 | 1232 | | |
1228 | 1233 | | |
1229 | 1234 | | |
| |||
0 commit comments