This is an automated email from the ASF dual-hosted git repository.
btellier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-project.git
The following commit(s) were added to refs/heads/master by this push:
new 357781540e [ENHANCEMENT] More context for SMTP logs (#1969)
357781540e is described below
commit 357781540e57c3db53f6d04266d2b76c31fc5793
Author: Benoit TELLIER <[email protected]>
AuthorDate: Fri Feb 9 16:18:48 2024 +0100
[ENHANCEMENT] More context for SMTP logs (#1969)
---
.../org/apache/james/protocols/smtp/core/log/HookResultLogger.java | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git
a/protocols/smtp/src/main/java/org/apache/james/protocols/smtp/core/log/HookResultLogger.java
b/protocols/smtp/src/main/java/org/apache/james/protocols/smtp/core/log/HookResultLogger.java
index 726e9cc71f..158d744e0d 100644
---
a/protocols/smtp/src/main/java/org/apache/james/protocols/smtp/core/log/HookResultLogger.java
+++
b/protocols/smtp/src/main/java/org/apache/james/protocols/smtp/core/log/HookResultLogger.java
@@ -42,9 +42,11 @@ public class HookResultLogger implements HookResultHook {
|| result.isDisconnected();
if (requiresInfoLogging) {
- LOGGER.info("{}: result= ({} {})", hook.getClass().getName(),
+ LOGGER.info("{}: result= ({} {}) {} {}", hook.getClass().getName(),
result.getAction(),
- result.getConnectionStatus());
+ result.getConnectionStatus(),
+ hResult.getSmtpRetCode(),
+ hResult.getSmtpDescription());
} else {
LOGGER.debug("{}: result= ({} {})", hook.getClass().getName(),
result.getAction(),
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]