tweaking logging, tweaking net code
This commit is contained in:
parent
645cc03462
commit
dd114957ba
src
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user