Actually log methods and params #9
This commit is contained in:
parent
ca4f950195
commit
7144cdc20b
1 changed files with 2 additions and 2 deletions
|
|
@ -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 )
|
||||
|
|
|
|||
Loading…
Reference in a new issue