Permalink
Browse files

Corrected a log message when email could not be send

  • Loading branch information...
1 parent f60d011 commit 91f4555d885270e882560b474614246fda45c3b6 @gizmocuz gizmocuz committed Dec 28, 2016
Showing with 2 additions and 2 deletions.
  1. +1 −1 notifications/NotificationEmail.cpp
  2. +1 −1 smtpclient/SMTPClient.cpp
@@ -133,7 +133,7 @@ bool CNotificationEmail::SendMessageImplementation(
sclient.SetHTMLBody(HtmlBody.c_str());
bool bRet=sclient.SendEmail();
if (!bRet) {
- _log.Log(LOG_ERROR, std::string("Failed to send email notification : ").c_str());
+ _log.Log(LOG_ERROR, "Failed to send Email notification!");
}
return bRet;
}
@@ -104,7 +104,7 @@ bool SMTPClient::SendEmail()
{
if (m_From.size()==0)
return false;
- if (m_Recipients.size()==0)
+ if (m_Recipients.empty())
return false;
if (m_Server.size()==0)
return false;

0 comments on commit 91f4555

Please sign in to comment.