Improve logging with auth type none

This commit is contained in:
Jonathan Jenne
2023-11-16 10:18:53 +01:00
parent 8ab32a4d2b
commit 8da8bd18a7

View File

@@ -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