Skip to content

Commit

Permalink
Raise beforeCompletion/afterCompletion exception log level to error
Browse files Browse the repository at this point in the history
Closes gh-30776
  • Loading branch information
jhoeller committed Jun 30, 2023
1 parent 60865ea commit f1567fb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Expand Up @@ -85,7 +85,7 @@ public static Mono<Void> triggerBeforeCommit(Collection<TransactionSynchronizati
public static Mono<Void> triggerBeforeCompletion(Collection<TransactionSynchronization> synchronizations) {
return Flux.fromIterable(synchronizations)
.concatMap(TransactionSynchronization::beforeCompletion).onErrorContinue((t, o) ->
logger.debug("TransactionSynchronization.beforeCompletion threw exception", t)).then();
logger.error("TransactionSynchronization.beforeCompletion threw exception", t)).then();
}

/**
Expand Down Expand Up @@ -115,7 +115,7 @@ public static Mono<Void> invokeAfterCompletion(
Collection<TransactionSynchronization> synchronizations, int completionStatus) {

return Flux.fromIterable(synchronizations).concatMap(it -> it.afterCompletion(completionStatus))
.onErrorContinue((t, o) -> logger.debug("TransactionSynchronization.afterCompletion threw exception", t)).then();
.onErrorContinue((t, o) -> logger.error("TransactionSynchronization.afterCompletion threw exception", t)).then();
}


Expand Down
Expand Up @@ -108,7 +108,7 @@ public static void triggerBeforeCompletion() {
synchronization.beforeCompletion();
}
catch (Throwable ex) {
logger.debug("TransactionSynchronization.beforeCompletion threw exception", ex);
logger.error("TransactionSynchronization.beforeCompletion threw exception", ex);
}
}
}
Expand Down Expand Up @@ -172,7 +172,7 @@ public static void invokeAfterCompletion(@Nullable List<TransactionSynchronizati
synchronization.afterCompletion(completionStatus);
}
catch (Throwable ex) {
logger.debug("TransactionSynchronization.afterCompletion threw exception", ex);
logger.error("TransactionSynchronization.afterCompletion threw exception", ex);
}
}
}
Expand Down

0 comments on commit f1567fb

Please sign in to comment.