diff --git a/gateway/src/impls/eth.rs b/gateway/src/impls/eth.rs index 08fad6f2a..94e301e1e 100644 --- a/gateway/src/impls/eth.rs +++ b/gateway/src/impls/eth.rs @@ -587,7 +587,8 @@ impl Eth for EthClient { .map_err(execution_error) .then(move |result| { drop(timer); - info!("send_raw_transaction time: {:?}", start.elapsed()); + let elapsed = start.elapsed(); + info!(self.logger, "send_raw_transaction"; "time" => ?elapsed); result }), ) diff --git a/gateway/src/impls/oasis.rs b/gateway/src/impls/oasis.rs index 848abb0c8..a919ac350 100644 --- a/gateway/src/impls/oasis.rs +++ b/gateway/src/impls/oasis.rs @@ -134,7 +134,8 @@ impl Oasis for OasisClient { .map_err(execution_error) .then(move |maybe_result| { drop(timer); - info!("invoke time: {:?}", start.elapsed()); + let elapsed = start.elapsed(); + info!(self.logger, "invoke"; "time" => ?elapsed); maybe_result.map(|(hash, result)| RpcExecutionPayload { transaction_hash: hash.into(),