From fb6675eb739e3ed39c64e3c95cd3472f9c8d91f2 Mon Sep 17 00:00:00 2001 From: Janos SUTO Date: Thu, 3 May 2018 13:08:05 +0200 Subject: [PATCH] add extra logging if accept() fails Signed-off-by: Janos SUTO --- src/config.h | 4 ++-- src/piler-smtp.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/config.h b/src/config.h index 44771949..007fc364 100644 --- a/src/config.h +++ b/src/config.h @@ -9,9 +9,9 @@ #include "piler-config.h" #include "params.h" -#define VERSION "1.3.4" +#define VERSION "1.3.5-pre1" -#define BUILD 994 +#define BUILD 995 #define HOSTID "mailarchiver" diff --git a/src/piler-smtp.c b/src/piler-smtp.c index 8d232d4c..2353ec48 100644 --- a/src/piler-smtp.c +++ b/src/piler-smtp.c @@ -249,7 +249,7 @@ int main(int argc, char **argv){ break; } else { - syslog(LOG_PRIORITY, "ERROR: accept()"); + syslog(LOG_PRIORITY, "ERROR: accept(): '%s'", strerror(errno)); break; } }