changeset 19011:5220d361871e

imap: If mailbox state couldn't be exported for hibernation, log also the mailbox name.
author Timo Sirainen <tss@iki.fi>
date Tue, 25 Aug 2015 23:20:49 +0300
parents a919414e68d2
children 156aed1fc0fc
files src/imap/imap-client-hibernate.c
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/imap/imap-client-hibernate.c	Tue Aug 25 23:12:51 2015 +0300
+++ b/src/imap/imap-client-hibernate.c	Tue Aug 25 23:20:49 2015 +0300
@@ -191,10 +191,14 @@
 	ret = imap_state_export_internal(client, state, &error);
 	if (ret < 0) {
 		i_error("Couldn't hibernate imap client: "
-			"Couldn't export state: %s", error);
+			"Couldn't export state: %s (mailbox=%s)", error,
+			client->mailbox == NULL ? "" :
+			mailbox_get_vname(client->mailbox));
 	} else if (ret == 0 && client->user->mail_debug) {
 		i_debug("Couldn't hibernate imap client: "
-			"Couldn't export state: %s", error);
+			"Couldn't export state: %s (mailbox=%s)", error,
+			client->mailbox == NULL ? "" :
+			mailbox_get_vname(client->mailbox));
 	}
 	if (ret > 0 && client->mailbox != NULL) {
 		fd_notify = mailbox_watch_extract_notify_fd(client->mailbox,