From 7144cdc20b28e11e1348b1268cb42b346c860305 Mon Sep 17 00:00:00 2001 From: Michael Vandeberg Date: Fri, 27 Jan 2017 12:07:50 -0500 Subject: [PATCH] Actually log methods and params #9 --- src/rpc/websocket_api.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rpc/websocket_api.cpp b/src/rpc/websocket_api.cpp index 8843f9e..5f86474 100644 --- a/src/rpc/websocket_api.cpp +++ b/src/rpc/websocket_api.cpp @@ -108,9 +108,9 @@ std::string websocket_api_connection::on_message( auto end = time_point::now(); if( end - start > fc::milliseconds( LOG_LONG_API_MAX_MS ) ) - elog( "API call execution time limit exceeded.", ("method",call.method)("params",call.params)("time", end - start) ); + elog( "API call execution time limit exceeded. method: ${m} params: ${p} time: ${t}", ("m",call.method)("p",call.params)("t", end - start) ); else if( end - start > fc::milliseconds( LOG_LONG_API_WARN_MS ) ) - wlog( "API call execution time nearing limit.", ("method",call.method)("params",call.params)("time", end - start) ); + wlog( "API call execution time nearing limit. method: ${m} params: ${p} time: ${t}", ("m",call.method)("p",call.params)("t", end - start) ); #endif if( call.id )