mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-25 07:10:12 +01:00
dedup debug message
This commit is contained in:
parent
3be7ea4f47
commit
54410669d4
@ -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 */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user