diff options
author | Hoa V. DINH <dinh.viet.hoa@gmail.com> | 2015-07-28 23:22:23 -0700 |
---|---|---|
committer | Hoa V. DINH <dinh.viet.hoa@gmail.com> | 2015-07-28 23:22:23 -0700 |
commit | 176db0df4eb695976f0443970e024691e6074c1a (patch) | |
tree | 887388b5b4c76a6595edf7ff8043f54cb9517ec5 /src | |
parent | 8cb9d38d66a0791d91be775498a8c17a3b9fac9e (diff) |
Removed useless logs
Diffstat (limited to 'src')
-rw-r--r-- | src/core/smtp/MCSMTPSession.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/smtp/MCSMTPSession.cpp b/src/core/smtp/MCSMTPSession.cpp index 8187675e..179c6c4e 100644 --- a/src/core/smtp/MCSMTPSession.cpp +++ b/src/core/smtp/MCSMTPSession.cpp @@ -189,6 +189,10 @@ static void logger(mailsmtp * smtp, int log_type, const char * buffer, size_t si return; ConnectionLogType type = getConnectionType(log_type); + if ((int) type == -1) { + // in case of MAILSTREAM_LOG_TYPE_INFO_RECEIVED or MAILSTREAM_LOG_TYPE_INFO_SENT. + return; + } bool isBuffer = isBufferFromLogType(log_type); if (isBuffer) { |