mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-17 16:39:29 +00:00
Prior to this commit, `DefaultExchangeFunction.exchange` added logging operations within `doOnRequest`/`doOnCancel` operators unconditionally, which costs two subscriber wrappers per request even though the log message construction itself is already guarded lazily. This commit gates the operators on `isDebugEnabled()`, checked per exchange so runtime log level changes are still honored. Signed-off-by: samlightfoot <samueldlightfoot@gmail.com>