changeset 15897:c05773011313

dsync: Don't log about remote dsync status if we're not doing a remote sync.
author Timo Sirainen <tss@iki.fi>
date Sun, 24 Feb 2013 08:06:51 +0200
parents 0ceb0029a781
children 357b1f1285ea
files src/doveadm/dsync/doveadm-dsync.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/doveadm/dsync/doveadm-dsync.c	Fri Feb 22 16:42:23 2013 +0200
+++ b/src/doveadm/dsync/doveadm-dsync.c	Sun Feb 24 08:06:51 2013 +0200
@@ -486,7 +486,8 @@
 		remote_errors_logged = ctx->err_stream->v_offset > 0;
 		i_stream_destroy(&ctx->err_stream);
 	}
-	cmd_dsync_log_remote_status(status, remote_errors_logged);
+	if (ctx->remote)
+		cmd_dsync_log_remote_status(status, remote_errors_logged);
 	if (ctx->io_err != NULL)
 		io_remove(&ctx->io_err);
 	if (ctx->fd_err != -1)