From: Stephan Bosch Date: Mon, 13 Apr 2020 12:44:31 +0000 (+0200) Subject: lib-smtp: test-smtp-client-errors - Turn server-side payload read error into a debug... X-Git-Tag: 2.3.13~639 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=74c1251a60c8694fe9c6ebc8d4e425d2d6a54dda;p=thirdparty%2Fdovecot%2Fcore.git lib-smtp: test-smtp-client-errors - Turn server-side payload read error into a debug message. This can readily occur during tests and must not issue a real error message. --- diff --git a/src/lib-smtp/test-smtp-client-errors.c b/src/lib-smtp/test-smtp-client-errors.c index 79679c2862..f27dc25dfc 100644 --- a/src/lib-smtp/test-smtp-client-errors.c +++ b/src/lib-smtp/test-smtp-client-errors.c @@ -3662,8 +3662,10 @@ server_connection_input(struct connection *_conn) if (ret == 0) return; if (conn->dot_input->stream_errno != 0) { - i_error("Failed to read message payload: %s", - i_stream_get_error(conn->dot_input)); + if (debug) { + i_debug("Failed to read message payload: %s", + i_stream_get_error(conn->dot_input)); + } server_connection_deinit(&conn); return; }