Skip to content

Commit

Permalink
lib: istream-sized - remove explicit i_error() logging
Browse files Browse the repository at this point in the history
The stream_errno is set, so it's the caller's responsibility to log the
error. There's no need to log it twice.
  • Loading branch information
sirainen authored and GitLab committed Dec 23, 2016
1 parent b7cabbb commit 4f22781
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/lib/istream-sized.c
Expand Up @@ -89,9 +89,6 @@ static ssize_t i_stream_sized_read(struct istream_private *stream)
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;
Expand All @@ -103,9 +100,6 @@ static ssize_t i_stream_sized_read(struct istream_private *stream)
} 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;
}

Expand Down

0 comments on commit 4f22781

Please sign in to comment.