]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-index: Replace i_<log>() with e_<log>()
authorMarco Bettini <marco.bettini@open-xchange.com>
Wed, 5 Oct 2022 13:08:09 +0000 (13:08 +0000)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Wed, 26 Oct 2022 16:35:08 +0000 (16:35 +0000)
src/lib-index/mail-index-fsck.c
src/lib-index/mail-transaction-log-file.c
src/lib-index/mail-transaction-log.c

index cd0f5984299535a13f7e54f0bc03130646b961f5..aefb14050bd9dd16d18a8bb324a6539739be456d 100644 (file)
@@ -445,7 +445,7 @@ int mail_index_fsck(struct mail_index *index)
        uint32_t file_seq;
        uoff_t file_offset;
 
-       i_warning("fscking index file %s", index->filepath);
+       e_warning(index->event, "fscking index file %s", index->filepath);
 
        index->fscked = TRUE;
 
index 7ea0975024e6583eebad2270db0633060d32ffdd..88c35b7dfec2c95f39da11d4717f34aca3b07f06 100644 (file)
@@ -421,7 +421,8 @@ void mail_transaction_log_file_unlock(struct mail_transaction_log_file *file,
 
        lock_time = time(NULL) - file->lock_create_time;
        if (lock_time >= MAIL_TRANSACTION_LOG_LOCK_WARN_SECS && lock_reason != NULL) {
-               i_warning("Transaction log file %s was locked for %u seconds (%s)",
+               e_warning(file->log->index->event,
+                         "Transaction log file %s was locked for %u seconds (%s)",
                          file->filepath, lock_time, lock_reason);
        }
 
index b26ce63958820d4302b17221d0b78fe8122b6630..5e56865afb96b2a68d0246692c1b48d81999fd6a 100644 (file)
@@ -555,7 +555,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 (%s)",
+               e_warning(log->index->event,
+                         "Locking transaction log file %s took %ld seconds (%s)",
                          log->head->filepath, (long)lock_secs, lock_reason);
        }