From a4326fe2710d12e30cf39dee2aaaba2e4fd0abfd Mon Sep 17 00:00:00 2001 From: Myung Bae Date: Tue, 10 Jan 2023 14:29:24 -0600 Subject: Clean up http end_of_stream traces http::end_of_stream log is not properly detected and thus it is being traced as error. It will be fixed to be traced as warning so they do not show up when just error traces are enabled (new default) Here's the log we was getting: Jan 10 13:34:32 ever6bmc bmcweb[2496]: (2023-01-10 13:34:32) \ [ERROR "http_connection.hpp":784] 0x14bd360 Error while \ reading: end of stream Change-Id: I6ecee813c4f7806a676ba0ad3e4ab1a8f78747fd Signed-off-by: Myung Bae --- http/http_connection.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'http/http_connection.hpp') diff --git a/http/http_connection.hpp b/http/http_connection.hpp index dc95b8e557..7d83476389 100644 --- a/http/http_connection.hpp +++ b/http/http_connection.hpp @@ -13,6 +13,7 @@ #include #include #include +#include #include #include #include @@ -424,7 +425,7 @@ class Connection : if (ec) { errorWhileReading = true; - if (ec == boost::asio::error::eof) + if (ec == boost::beast::http::error::end_of_stream) { BMCWEB_LOG_WARNING << this << " Error while reading: " << ec.message(); -- cgit v1.2.3