From 8da8bd18a7ba0bc56f38c1ecf4482d591bd21dce Mon Sep 17 00:00:00 2001 From: Jonathan Jenne Date: Thu, 16 Nov 2023 10:18:53 +0100 Subject: [PATCH] Improve logging with auth type none --- Messaging/Mail/MailSession.vb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Messaging/Mail/MailSession.vb b/Messaging/Mail/MailSession.vb index e0ad7362..5b9fa556 100644 --- a/Messaging/Mail/MailSession.vb +++ b/Messaging/Mail/MailSession.vb @@ -216,11 +216,11 @@ Namespace Mail Else Try - Logger.Debug("Unknown Auth type. Using PLAINTEXT connection.") + Logger.Debug("Auth type [{0}]. Using PLAINTEXT connection.", Session.AuthType) Client.Connect(pSession.Server, pSession.Port, useSSL:=False) Logger.Info("Connection Successful!") Catch ex As Exception - Logger.Warn("Error while connecting with Auth type PLAINTEXT!") + Logger.Warn("Error while connecting with Auth type [{0}]!", Session.AuthType) Logger.Error(ex) pSession.Error = ex