log every request and duration at info (#183)

This commit is contained in:
CJ Cobb
2022-06-17 15:07:01 -04:00
committed by GitHub
parent 20c2654abc
commit a62849b89a
2 changed files with 2 additions and 2 deletions

View File

@@ -217,7 +217,7 @@ logDuration(Context const& ctx, T const& dur)
else if (seconds > 1)
BOOST_LOG_TRIVIAL(warning) << ss.str();
else
BOOST_LOG_TRIVIAL(debug) << ss.str();
BOOST_LOG_TRIVIAL(info) << ss.str();
}
} // namespace RPC

View File

@@ -330,7 +330,7 @@ handle_request(
try
{
BOOST_LOG_TRIVIAL(info) << "Received request: " << req.body();
BOOST_LOG_TRIVIAL(debug) << "Received request: " << req.body();
boost::json::object request;
std::string responseStr = "";