Skip to content

Commit ec82c09

Browse files
nkokitkarCopilot
andcommitted
Fix: restore error log level in onFailure callback
Revert the log level in onFailure from debug back to error, as this callback handles exchange processing failures which should not be silently swallowed at debug level. Addresses review comment from @Croway. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 05ee1eb commit ec82c09

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

components/camel-paho/src/main/java/org/apache/camel/component/paho/PahoConsumer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ public void onComplete(Exchange exchange) {
162162

163163
@Override
164164
public void onFailure(Exchange exchange) {
165-
LOG.debug("Rollback due to error processing Exchange ID: {}", exchange.getExchangeId(),
165+
LOG.error("Rollback due to error processing Exchange ID: {}", exchange.getExchangeId(),
166166
exchange.getException());
167167
}
168168
});

0 commit comments

Comments
 (0)