]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-index: If mail_transaction_log_lock_head() locking took long, include reason...
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Mon, 22 Feb 2016 14:12:16 +0000 (16:12 +0200)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Mon, 22 Feb 2016 14:12:16 +0000 (16:12 +0200)
src/lib-index/mail-transaction-log.c

index ce71d0afe5385dc0edbe74dbb9fb12df6341b158..3e99e96ec0c5244f3ff4f1c809a9f33fd7e213ed 100644 (file)
@@ -479,8 +479,8 @@ int mail_transaction_log_lock_head(struct mail_transaction_log *log,
                /* try again */
        }
        if (lock_secs > MAIL_TRANSACTION_LOG_LOCK_WARN_SECS) {
-               i_warning("Locking transaction log file %s took %ld seconds",
-                         log->head->filepath, (long)lock_secs);
+               i_warning("Locking transaction log file %s took %ld seconds (%s)",
+                         log->head->filepath, (long)lock_secs, lock_reason);
        }
 
        i_assert(ret < 0 || log->head != NULL);