mirror of
https://github.com/XRPLF/clio.git
synced 2026-04-29 15:37:53 +00:00
log every request and duration at info (#183)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 = "";
|
||||
|
||||
Reference in New Issue
Block a user