aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/smtp
diff options
context:
space:
mode:
authorGravatar Hoa V. DINH <dinh.viet.hoa@gmail.com>2015-07-28 23:22:23 -0700
committerGravatar Hoa V. DINH <dinh.viet.hoa@gmail.com>2015-07-28 23:22:23 -0700
commit176db0df4eb695976f0443970e024691e6074c1a (patch)
tree887388b5b4c76a6595edf7ff8043f54cb9517ec5 /src/core/smtp
parent8cb9d38d66a0791d91be775498a8c17a3b9fac9e (diff)
Removed useless logs
Diffstat (limited to 'src/core/smtp')
-rw-r--r--src/core/smtp/MCSMTPSession.cpp4
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) {