The debug status comes from the parent event.
import_flags |= DSYNC_MAILBOX_IMPORT_FLAG_MASTER_BRAIN;
if (brain->backup_recv && !brain->no_backup_overwrite)
import_flags |= DSYNC_MAILBOX_IMPORT_FLAG_REVERT_LOCAL_CHANGES;
- if (brain->debug)
- import_flags |= DSYNC_MAILBOX_IMPORT_FLAG_DEBUG;
if (brain->local_dsync_box.have_save_guids &&
(remote_dsync_box->have_save_guids ||
(brain->backup_recv && remote_dsync_box->have_guids)))
importer = p_new(pool, struct dsync_mailbox_importer, 1);
importer->pool = pool;
importer->event = event_create(parent_event);
- event_set_forced_debug(importer->event, (flags & DSYNC_MAILBOX_IMPORT_FLAG_DEBUG) != 0);
event_set_append_log_prefix(importer->event, t_strdup_printf(
"Import mailbox %s: ", mailbox_get_vname(box)));
DSYNC_MAILBOX_IMPORT_FLAG_MASTER_BRAIN = 0x01,
DSYNC_MAILBOX_IMPORT_FLAG_WANT_MAIL_REQUESTS = 0x02,
DSYNC_MAILBOX_IMPORT_FLAG_REVERT_LOCAL_CHANGES = 0x04,
- DSYNC_MAILBOX_IMPORT_FLAG_DEBUG = 0x08,
DSYNC_MAILBOX_IMPORT_FLAG_MAILS_HAVE_GUIDS = 0x10,
DSYNC_MAILBOX_IMPORT_FLAG_MAILS_USE_GUID128 = 0x20,
DSYNC_MAILBOX_IMPORT_FLAG_NO_NOTIFY = 0x40,