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;
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);
}
/* 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);
}