]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
dsync: Log a more detailed reason why mailbox was lost
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Thu, 27 Oct 2022 22:21:48 +0000 (01:21 +0300)
committerTimo Sirainen <timo.sirainen@open-xchange.com>
Mon, 31 Oct 2022 12:09:10 +0000 (14:09 +0200)
Although usually the reason is just that it wasn't found.

src/doveadm/dsync/dsync-brain-mailbox.c

index 6a780b2a42b86905fb9223369321917b422d20ba..6733b385d941350585cc10534c0fb72a37126148 100644 (file)
@@ -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;
        }