From 54410669d4fe808d2c0dd9f940f9fe4f7286dc92 Mon Sep 17 00:00:00 2001 From: SJ Date: Wed, 6 May 2015 12:22:15 +0200 Subject: [PATCH] dedup debug message --- src/message.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/message.c b/src/message.c index df8524a3..0b035cff 100644 --- a/src/message.c +++ b/src/message.c @@ -256,10 +256,12 @@ int process_message(struct session_data *sdata, struct _state *state, struct __d fd = open(state->message_id_hash, O_CREAT|O_EXCL|O_RDWR|O_TRUNC, S_IRUSR|S_IWUSR); if(fd == -1){ remove_stripped_attachments(state); + if(cfg->verbosity >= _LOG_DEBUG) syslog(LOG_PRIORITY, "%s: touch %s FAILED (%s)", sdata->ttmpfile, state->message_id_hash, state->message_id); return ERR_EXISTS; } close(fd); + if(cfg->verbosity >= _LOG_DEBUG) syslog(LOG_PRIORITY, "%s: touch %s OK (%s)", sdata->ttmpfile, state->message_id_hash, state->message_id); /* store base64 encoded file attachments */