boost log instead of cerr

This commit is contained in:
sachaaaaa 2019-06-07 12:04:05 +10:00
parent 5d4a4cb270
commit f857791e90

View file

@ -126,7 +126,7 @@ void HttpsClientSession::start() {
if (!SSL_set_tlsext_host_name(stream_.native_handle(), "service node")) {
boost::beast::error_code ec{static_cast<int>(::ERR_get_error()),
boost::asio::error::get_ssl_category()};
std::cerr << ec.message() << "\n";
BOOST_LOG_TRIVIAL(error) << ec.message();
return;
}
boost::asio::async_connect(