Skip to content

Commit 7144cdc

Browse files
author
Michael Vandeberg
committed
Actually log methods and params bitshares#9
1 parent ca4f950 commit 7144cdc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rpc/websocket_api.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,9 @@ std::string websocket_api_connection::on_message(
108108
auto end = time_point::now();
109109

110110
if( end - start > fc::milliseconds( LOG_LONG_API_MAX_MS ) )
111-
elog( "API call execution time limit exceeded.", ("method",call.method)("params",call.params)("time", end - start) );
111+
elog( "API call execution time limit exceeded. method: ${m} params: ${p} time: ${t}", ("m",call.method)("p",call.params)("t", end - start) );
112112
else if( end - start > fc::milliseconds( LOG_LONG_API_WARN_MS ) )
113-
wlog( "API call execution time nearing limit.", ("method",call.method)("params",call.params)("time", end - start) );
113+
wlog( "API call execution time nearing limit. method: ${m} params: ${p} time: ${t}", ("m",call.method)("p",call.params)("t", end - start) );
114114
#endif
115115

116116
if( call.id )

0 commit comments

Comments
 (0)