Commit fe95ac4
authored
Use separate logger for PulsarListener exceptions (#1039)
This creates a separate logger for DefaultPulsarMessageListenerContainer
that it uses to log exceptions thrown from listener callback methods.
The exceptions are still logged at debug level in order to not change
behavior in a patch release. However, the log category used by the logger
can then be set to debug level but not spam the logs with the other
debug statements in the listener container.
Also, adds exception logging to the batch listener invocation using
the same listener error logger as the record listener invocation.
Resolves #10081 parent 147844b commit fe95ac4
File tree
1 file changed
+9
-4
lines changed- spring-pulsar/src/main/java/org/springframework/pulsar/listener
1 file changed
+9
-4
lines changedLines changed: 9 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
114 | 117 | | |
115 | 118 | | |
116 | 119 | | |
| |||
629 | 632 | | |
630 | 633 | | |
631 | 634 | | |
632 | | - | |
| 635 | + | |
633 | 636 | | |
634 | 637 | | |
635 | 638 | | |
| |||
642 | 645 | | |
643 | 646 | | |
644 | 647 | | |
645 | | - | |
646 | | - | |
647 | | - | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
648 | 651 | | |
649 | 652 | | |
650 | 653 | | |
| |||
713 | 716 | | |
714 | 717 | | |
715 | 718 | | |
| 719 | + | |
| 720 | + | |
716 | 721 | | |
717 | 722 | | |
718 | 723 | | |
| |||
0 commit comments