summaryrefslogtreecommitdiff
path: root/src/checker/errors/mail/empty.cpp
diff options
context:
space:
mode:
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;
}
}