]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
dsync: Removed in/out state from debugging.
authorTimo Sirainen <tss@iki.fi>
Fri, 24 Oct 2014 00:58:35 +0000 (03:58 +0300)
committerTimo Sirainen <tss@iki.fi>
Fri, 24 Oct 2014 00:58:35 +0000 (03:58 +0300)
This was initially added for debugging hangs, but those haven't existed for
a long time now. Maybe we should eventually make debug categories
configurable, but for now nobody wants to see these messages.

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

index e931190940503bd036ff62157f2f8a1d36e6c70a..4d85050dd6f2b2d371223ea2228e41f395e7aa48 100644 (file)
@@ -315,13 +315,6 @@ bool dsync_brain_sync_mails(struct dsync_brain *brain)
 
        i_assert(brain->box != NULL);
 
-       if (brain->debug) {
-               i_debug("brain %c: in box '%s' recv_state=%s send_state=%s",
-                       brain->master_brain ? 'M' : 'S',
-                       mailbox_get_vname(brain->box),
-                       dsync_box_state_names[brain->box_recv_state],
-                       dsync_box_state_names[brain->box_send_state]);
-       }
        switch (brain->box_recv_state) {
        case DSYNC_BOX_STATE_MAILBOX:
                changed = dsync_brain_master_sync_recv_mailbox(brain);
@@ -372,12 +365,5 @@ bool dsync_brain_sync_mails(struct dsync_brain *brain)
                        break;
                }
        }
-       if (brain->debug) {
-               i_debug("brain %c: out box '%s' recv_state=%s send_state=%s changed=%d",
-                       brain->master_brain ? 'M' : 'S',
-                       brain->box == NULL ? "" : mailbox_get_vname(brain->box),
-                       dsync_box_state_names[brain->box_recv_state],
-                       dsync_box_state_names[brain->box_send_state], changed);
-       }
        return changed;
 }
index 2c2c78152249d0c80ad2997aa4621b886dd02ce1..24040dc690f9a17bde6df890c1eba30d165c43c5 100644 (file)
@@ -539,10 +539,6 @@ static bool dsync_brain_run_real(struct dsync_brain *brain, bool *changed_r)
        if (brain->failed)
                return FALSE;
 
-       if (brain->debug) {
-               i_debug("brain %c: in state=%s", brain->master_brain ? 'M' : 'S',
-                       dsync_state_names[brain->state]);
-       }
        switch (brain->state) {
        case DSYNC_STATE_MASTER_RECV_HANDSHAKE:
                changed = dsync_brain_master_recv_handshake(brain);
@@ -586,11 +582,6 @@ static bool dsync_brain_run_real(struct dsync_brain *brain, bool *changed_r)
                ret = FALSE;
                break;
        }
-       if (brain->debug) {
-               i_debug("brain %c: out state=%s changed=%d",
-                       brain->master_brain ? 'M' : 'S',
-                       dsync_state_names[brain->state], changed);
-       }
        if (brain->verbose_proctitle) {
                if (orig_state != brain->state ||
                    orig_box_recv_state != brain->box_recv_state ||