diff options
author | claiff <claiff@mail.ru> | 2022-09-30 12:21:34 +0300 |
---|---|---|
committer | claiff <claiff@mail.ru> | 2022-09-30 12:21:34 +0300 |
commit | 7fcd35b7ad0fa2b0a49c5cdd9a62e23412bf8731 (patch) | |
tree | 2af4dacab9a5992d19abd385dbaaa9de40ffc891 /src/checker/errors/mail/empty.cpp | |
parent | 8d38861429c3544d10752fb0f6f9da436dee218f (diff) | |
download | obmc-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.cpp | 8 |
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; } } |