Mercurial > dovecot > core-2.2
changeset 20208:f1a5362b8a85
dsync: Debug logging improvement.
author | Timo Sirainen <timo.sirainen@dovecot.fi> |
---|---|
date | Fri, 27 May 2016 18:30:01 +0300 |
parents | 386d17b415bb |
children | 8c630921310d |
files | src/doveadm/dsync/dsync-mailbox-import.c |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/doveadm/dsync/dsync-mailbox-import.c Fri May 27 14:38:17 2016 +0300 +++ b/src/doveadm/dsync/dsync-mailbox-import.c Fri May 27 18:30:01 2016 +0300 @@ -124,6 +124,10 @@ unsigned int delete_mailbox:1; }; +static const char *dsync_mail_change_type_names[] = { + "save", "expunge", "flag-change" +}; + static bool dsync_mailbox_save_newmails(struct dsync_mailbox_importer *importer, const struct dsync_mail *mail, struct importer_new_mail *all_newmails, @@ -1710,7 +1714,8 @@ result = "New mail"; } - imp_debug(importer, "Import change GUID=%s UID=%u hdr_hash=%s result=%s", + imp_debug(importer, "Import change type=%s GUID=%s UID=%u hdr_hash=%s result=%s", + dsync_mail_change_type_names[change->type], change->guid != NULL ? change->guid : "<unknown>", change->uid, change->hdr_hash != NULL ? change->hdr_hash : "", result);