tweaking logging, tweaking net code

This commit is contained in:
Andy Pack 2025-01-28 21:44:02 +00:00
parent 645cc03462
commit dd114957ba
Signed by: sarsoo
GPG Key ID: A55BA3536A5E0ED7
2 changed files with 8 additions and 4 deletions

@ -28,6 +28,10 @@ void shutdown_stream(const std::shared_ptr<ssl::stream<beast::tcp_stream>> &stre
beast::error_code ec;
BOOST_LOG_TRIVIAL(debug) << "Gracefully shutting down stream";
stream->shutdown(ec);
stream->lowest_layer().shutdown(boost::asio::ip::tcp::socket::shutdown_both, ec);
stream->lowest_layer().cancel(ec);
stream->lowest_layer().close();
if(ec == net::error::eof)
{
// Rationale:

@ -71,7 +71,7 @@ void FileContext::parse_links() {
}
}
else {
BOOST_LOG_TRIVIAL(error) << "Skipping line because too long: " << line;
BOOST_LOG_TRIVIAL(trace) << "Skipping line because too long: " << line;
}
}
}
@ -91,7 +91,7 @@ void FileContext::parse_images() {
}
}
else {
BOOST_LOG_TRIVIAL(error) << "Skipping line because too long: " << line;
BOOST_LOG_TRIVIAL(trace) << "Skipping line because too long: " << line;
}
}
}
@ -115,7 +115,7 @@ void FileContext::parse_tags() {
}
}
else {
BOOST_LOG_TRIVIAL(error) << "Skipping line because too long: " << line;
BOOST_LOG_TRIVIAL(trace) << "Skipping line because too long: " << line;
}
}
}
@ -135,7 +135,7 @@ void FileContext::parse_tasks() {
}
}
else {
BOOST_LOG_TRIVIAL(error) << "Skipping line because too long: " << line;
BOOST_LOG_TRIVIAL(trace) << "Skipping line because too long: " << line;
}
}
}