]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-fs: Don't log "Asynchronous operation in progress" debug messages
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Tue, 14 Jan 2020 21:28:53 +0000 (23:28 +0200)
committerTimo Sirainen <timo.sirainen@open-xchange.com>
Tue, 14 Jan 2020 21:28:53 +0000 (23:28 +0200)
src/lib-fs/fs-api.c

index 739927895d37f0fed764b65b20418dc380a89b4a..a68e3f0e2623dca7b4eb8beddf34f0e84d711000 100644 (file)
@@ -560,7 +560,10 @@ fs_set_verror(struct event *event, const char *fmt, va_list args)
        }
 
        char *new_error = i_strdup_vprintf(fmt, args);
-       e_debug(event, "%s", new_error);
+       /* Don't flood the debug log with "Asynchronous operation in progress"
+          messages. They tell nothing useful. */
+       if (errno != EAGAIN)
+               e_debug(event, "%s", new_error);
 
        /* free old error after strdup in case args point to the old error */
        if (file != NULL) {