Skip to content

Commit b87d20a

Browse files
committed
[ENHANCEMENT] Lower logs of passing hooks
Logs like: executing hook org.apache.james.smtpserver.jmx.HookResultJMXMonitor@13071819 Aren't very useful and do generate a lot of noise. It makes audit of the SMTP traces harder. Hence moving it to traces.
1 parent fcfabe0 commit b87d20a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

protocols/smtp/src/main/java/org/apache/james/protocols/smtp/core/log/HookResultLogger.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public HookResult onHookResult(SMTPSession session, HookResult hResult, long exe
4848
hResult.getSmtpRetCode(),
4949
hResult.getSmtpDescription());
5050
} else {
51-
LOGGER.debug("{}: result= ({} {})", hook.getClass().getName(),
51+
LOGGER.trace("{}: result= ({} {})", hook.getClass().getName(),
5252
result.getAction(),
5353
result.getConnectionStatus());
5454
}

0 commit comments

Comments
 (0)