From a62849b89a55e5ec05f19cbed9e24690969f5e88 Mon Sep 17 00:00:00 2001 From: CJ Cobb <46455409+cjcobb23@users.noreply.github.com> Date: Fri, 17 Jun 2022 15:07:01 -0400 Subject: [PATCH] log every request and duration at info (#183) --- src/rpc/RPC.h | 2 +- src/webserver/HttpBase.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rpc/RPC.h b/src/rpc/RPC.h index f9d387555..9af45424b 100644 --- a/src/rpc/RPC.h +++ b/src/rpc/RPC.h @@ -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 diff --git a/src/webserver/HttpBase.h b/src/webserver/HttpBase.h index 82fec61ec..c387af8cd 100644 --- a/src/webserver/HttpBase.h +++ b/src/webserver/HttpBase.h @@ -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 = "";