summaryrefslogtreecommitdiff
path: root/src/checker/errors/mail/empty.cpp
diff options
context:
space:
mode:
authorclaiff <claiff@mail.ru>2022-09-30 12:21:34 +0300
committerclaiff <claiff@mail.ru>2022-09-30 12:21:34 +0300
commit7fcd35b7ad0fa2b0a49c5cdd9a62e23412bf8731 (patch)
tree2af4dacab9a5992d19abd385dbaaa9de40ffc891 /src/checker/errors/mail/empty.cpp
parent8d38861429c3544d10752fb0f6f9da436dee218f (diff)
downloadobmc-sila-smtp-7fcd35b7ad0fa2b0a49c5cdd9a62e23412bf8731.tar.xz
Add checking mailsfeature/checker/server
Add check server fix add simillar mails
Diffstat (limited to 'src/checker/errors/mail/empty.cpp')
-rw-r--r--src/checker/errors/mail/empty.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/checker/errors/mail/empty.cpp b/src/checker/errors/mail/empty.cpp
index a893fbb..1c39e78 100644
--- a/src/checker/errors/mail/empty.cpp
+++ b/src/checker/errors/mail/empty.cpp
@@ -1,9 +1,15 @@
#include "empty.hpp"
+#include "logger/logger_set.hpp"
namespace smtp::checker::errors::settings
{
bool Empty::Check( std::string const& line ) const
{
- return !line.empty() && line != " ";
+ auto result = !line.empty() && line != " ";
+ if(!result)
+ {
+ logger::LoggerSet::GetInstance()->LogError( GetMethodName(), "Mails are empty" );
+ }
+ return result;
}
}