changeset 21684:794d82d6db5f

lib: istream-sized - remove explicit i_error() logging The stream_errno is set, so it's the caller's responsibility to log the error. There's no need to log it twice.
author Timo Sirainen <timo.sirainen@dovecot.fi>
date Fri, 23 Dec 2016 12:26:17 -0500
parents a7abc03aff58
children 5eb922a4fdf6
files src/lib/istream-sized.c
diffstat 1 files changed, 0 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib/istream-sized.c	Mon May 16 20:17:41 2016 +0300
+++ b/src/lib/istream-sized.c	Fri Dec 23 12:26:17 2016 -0500
@@ -90,9 +90,6 @@
 	else if (pos > left) {
 		error = sstream->error_callback(&data, sstream->error_context);
 		io_stream_set_error(&stream->iostream, "%s", error);
-		i_error("read(%s) failed: %s",
-			i_stream_get_name(&stream->istream),
-			stream->iostream.error);
 		pos = left;
 		stream->istream.eof = TRUE;
 		stream->istream.stream_errno = EINVAL;
@@ -104,9 +101,6 @@
 	} else {
 		error = sstream->error_callback(&data, sstream->error_context);
 		io_stream_set_error(&stream->iostream, "%s", error);
-		i_error("read(%s) failed: %s",
-			i_stream_get_name(&stream->istream),
-			stream->iostream.error);
 		stream->istream.stream_errno = EINVAL;
 	}