From: Timo Sirainen Date: Fri, 17 Oct 2014 23:12:47 +0000 (+0300) Subject: lib-storage: When logging about corrupted cached message size, log the filename also. X-Git-Tag: 2.2.15~51 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6a268ef957524efccc9bdabada2645499be02dde;p=thirdparty%2Fdovecot%2Fcore.git lib-storage: When logging about corrupted cached message size, log the filename also. --- diff --git a/src/lib-storage/index/istream-mail.c b/src/lib-storage/index/istream-mail.c index 721e02b5f3..3e91b206a3 100644 --- a/src/lib-storage/index/istream-mail.c +++ b/src/lib-storage/index/istream-mail.c @@ -80,7 +80,8 @@ i_stream_mail_set_size_corrupted(struct mail_istream *mstream, size_t size) mstream->expected_size, chr, cur_size, mailbox_get_vname(mstream->mail->box), mstream->mail->uid, mail_id); - mail_storage_set_critical(mstream->mail->box->storage, "%s", + mail_storage_set_critical(mstream->mail->box->storage, "read(%s) failed: %s", + i_stream_get_name(&mstream->istream.istream), mstream->istream.iostream.error); mail_set_cache_corrupted(mstream->mail, MAIL_FETCH_PHYSICAL_SIZE); mstream->istream.istream.stream_errno = EINVAL;