Mercurial > dovecot > core-2.2
changeset 17225:112c6951c1df
replicator: Improve logging import/export errors.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Wed, 16 Apr 2014 10:40:28 +0200 |
parents | 5e42a8c18b51 |
children | 3745f5c73224 |
files | src/replication/replicator/replicator-queue.c |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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);