dovecot-2.2: replicator: Improve logging import/export errors.

dovecot at dovecot.org dovecot at dovecot.org
Wed Apr 16 13:45:27 UTC 2014


details:   http://hg.dovecot.org/dovecot-2.2/rev/112c6951c1df
changeset: 17225:112c6951c1df
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Apr 16 10:40:28 2014 +0200
description:
replicator: Improve logging import/export errors.

diffstat:

 src/replication/replicator/replicator-queue.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (24 lines):

diff -r 5e42a8c18b51 -r 112c6951c1df src/replication/replicator/replicator-queue.c
--- a/src/replication/replicator/replicator-queue.c	Wed Apr 16 00:13:42 2014 +0200
+++ b/src/replication/replicator/replicator-queue.c	Wed Apr 16 10:40:28 2014 +0200
@@ -371,8 +371,10 @@
 			break;
 		}
 	}
-	if (input->stream_errno != 0)
+	if (input->stream_errno != 0) {
+		i_error("read(%s) failed: %s", path, i_stream_get_error(input));
 		ret = -1;
+	}
 	i_stream_destroy(&input);
 	return ret;
 }
@@ -417,7 +419,7 @@
 	}
 	replicator_queue_iter_deinit(&iter);
 	if (o_stream_nfinish(output) < 0) {
-		i_error("write(%s) failed: %m", path);
+		i_error("write(%s) failed: %s", path, o_stream_get_error(output));
 		ret = -1;
 	}
 	o_stream_destroy(&output);


More information about the dovecot-cvs mailing list