Improve logging with auth type none
This commit is contained in:
@@ -216,11 +216,11 @@ Namespace Mail
|
|||||||
|
|
||||||
Else
|
Else
|
||||||
Try
|
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)
|
Client.Connect(pSession.Server, pSession.Port, useSSL:=False)
|
||||||
Logger.Info("Connection Successful!")
|
Logger.Info("Connection Successful!")
|
||||||
Catch ex As Exception
|
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)
|
Logger.Error(ex)
|
||||||
|
|
||||||
pSession.Error = ex
|
pSession.Error = ex
|
||||||
|
|||||||
Reference in New Issue
Block a user