summaryrefslogtreecommitdiff
path: root/http/http_server.hpp
diff options
context:
space:
mode:
authorEd Tanous <edtanous@google.com>2022-02-28 21:20:59 +0300
committerEd Tanous <ed@tanous.net>2022-03-07 21:04:33 +0300
commit8cc8edec45fb504457933c2c3f2625fa876493e6 (patch)
tree86f7a8028f8b07dbb42a383828c0b456d4c7f4ee /http/http_server.hpp
parent5b9ef70bd343047bb3c1f204b4a2de1030354704 (diff)
downloadbmcweb-8cc8edec45fb504457933c2c3f2625fa876493e6.tar.xz
Don't rely on operator << for object logging
In the upcoming fmt patch, we remove the use of streams, and a number of our logging statements are relying on them. This commit changes them to no longer rely on operator>> or operator+ to build their strings. This alone isn't very useful, but in the context of the next patch makes the automation able to do a complete conversion of all log statements automatically. Tested: enabled logging on local and saw log statements print to console Signed-off-by: Ed Tanous <edtanous@google.com> Change-Id: I0e5dc2cf015c6924037e38d547535eda8175a6a1
Diffstat (limited to 'http/http_server.hpp')
-rw-r--r--http/http_server.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/http/http_server.hpp b/http/http_server.hpp
index bf4a091c6b..0b2cae1bfc 100644
--- a/http/http_server.hpp
+++ b/http/http_server.hpp
@@ -91,7 +91,7 @@ class Server
};
BMCWEB_LOG_INFO << "bmcweb server is running, local endpoint "
- << acceptor->local_endpoint();
+ << acceptor->local_endpoint().address().to_string();
startAsyncWaitForSignal();
doAccept();
}
@@ -115,7 +115,7 @@ class Server
fs::create_directories(certPath);
}
fs::path certFile = certPath / "server.pem";
- BMCWEB_LOG_INFO << "Building SSL Context file=" << certFile;
+ BMCWEB_LOG_INFO << "Building SSL Context file=" << certFile.string();
std::string sslPemFile(certFile);
ensuressl::ensureOpensslKeyPresentAndValid(sslPemFile);
std::shared_ptr<boost::asio::ssl::context> sslContext =