From d13f87b964d35ff570a1fdbdb6965f78ac278a33 Mon Sep 17 00:00:00 2001 From: clauspeterhuebner Date: Thu, 19 Feb 2026 01:53:47 +0100 Subject: [PATCH] correct log output --- core/src/command/commands/SendEmailCommand.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/core/src/command/commands/SendEmailCommand.ts b/core/src/command/commands/SendEmailCommand.ts index c43ce009c..0fd748610 100644 --- a/core/src/command/commands/SendEmailCommand.ts +++ b/core/src/command/commands/SendEmailCommand.ts @@ -98,17 +98,17 @@ export class SendEmailCommand extends BaseCommand | bool private getEmailResult(result: Record | boolean | null | Error): string { const methodLogger = createLogger(`getEmailResult`) if (methodLogger.isDebugEnabled()) { - methodLogger.debug(`getEmailResult() result=${JSON.stringify(result)}`) + methodLogger.debug(`result=${JSON.stringify(result)}`) } let emailResult: string; if(result === null) { - emailResult = `getEmailResult() result is null` + emailResult = `result is null` } else if(typeof result === 'boolean') { - emailResult = `getEmailResult() result is ${result}` + emailResult = `result is ${result}` } else if(result instanceof Error) { - emailResult = `getEmailResult() error-message is ${result.message}` + emailResult = `error-message is ${result.message}` } else if(typeof result === 'object') { // {"accepted":["stage5@gradido.net"],"rejected":[],"ehlo":["PIPELINING","SIZE 25600000","ETRN","AUTH DIGEST-MD5 CRAM-MD5 PLAIN LOGIN","ENHANCEDSTATUSCODES","8BITMIME","DSN","CHUNKING"],"envelopeTime":23,"messageTime":135,"messageSize":37478,"response":"250 2.0.0 Ok: queued as C45C2100BD7","envelope":{"from":"stage5@gradido.net","to":["stage5@gradido.net"]},"messageId":"" @@ -116,10 +116,10 @@ export class SendEmailCommand extends BaseCommand | bool const messageSize = (result as Record).messageSize; const response = (result as Record).response; const envelope = JSON.stringify((result as Record).envelope); - emailResult = `getEmailResult() accepted=${accepted}, messageSize=${messageSize}, response=${response}, envelope=${envelope}` + emailResult = `accepted=${accepted}, messageSize=${messageSize}, response=${response}, envelope=${envelope}` } else { - emailResult = `getEmailResult() result is unknown type` + emailResult = `result is unknown type` } return emailResult;