mirror of
https://github.com/badaix/snapcast.git
synced 2025-04-28 17:57:05 +02:00
Lower log level
This commit is contained in:
parent
7cf0586ab1
commit
cf95349c67
1 changed files with 4 additions and 2 deletions
|
@ -361,10 +361,12 @@ void ControlSessionHttp::on_read(beast::error_code ec, std::size_t bytes_transfe
|
|||
if ((ec == http::error::end_of_stream) || (ec == boost::asio::error::connection_reset))
|
||||
{
|
||||
if (is_ssl_)
|
||||
ssl_socket_->async_shutdown([](const boost::system::error_code& error)
|
||||
ssl_socket_->async_shutdown([&](const boost::system::error_code& error)
|
||||
{
|
||||
if (error.failed())
|
||||
LOG(ERROR, LOG_TAG) << "Failed to shudown ssl socket: " << error << "\n";
|
||||
LOG(INFO, LOG_TAG) << "Failed to shudown ssl socket: " << error << "\n";
|
||||
else if (boost::system::error_code res = ssl_socket_->next_layer().shutdown(tcp_socket::shutdown_send, ec); res.failed())
|
||||
LOG(ERROR, LOG_TAG) << "Failed to shudown socket: " << res << "\n";
|
||||
});
|
||||
else if (boost::system::error_code res = tcp_socket_->shutdown(tcp_socket::shutdown_send, ec); res.failed())
|
||||
LOG(ERROR, LOG_TAG) << "Failed to shudown socket: " << res << "\n";
|
||||
|
|
Loading…
Add table
Reference in a new issue