From: Timo Sirainen Date: Thu, 27 Oct 2022 22:21:48 +0000 (+0300) Subject: dsync: Log a more detailed reason why mailbox was lost X-Git-Tag: 2.4.0~3472 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cdf981514af4eb8af5a459d8e68bed2cccd7f37c;p=thirdparty%2Fdovecot%2Fcore.git dsync: Log a more detailed reason why mailbox was lost Although usually the reason is just that it wasn't found. --- diff --git a/src/doveadm/dsync/dsync-brain-mailbox.c b/src/doveadm/dsync/dsync-brain-mailbox.c index 6a780b2a42..6733b385d9 100644 --- a/src/doveadm/dsync/dsync-brain-mailbox.c +++ b/src/doveadm/dsync/dsync-brain-mailbox.c @@ -841,8 +841,8 @@ bool dsync_brain_slave_recv_mailbox(struct dsync_brain *brain) } //FIXME: verify this from log, and if not log an error. dsync_brain_set_changes_during_sync(brain, t_strdup_printf( - "Mailbox GUID %s was lost", - guid_128_to_string(dsync_box->mailbox_guid))); + "Mailbox GUID %s was lost: %s", + guid_128_to_string(dsync_box->mailbox_guid), errstr)); dsync_brain_slave_send_mailbox_lost(brain, dsync_box, FALSE); return TRUE; }