Skip to content
This repository has been archived by the owner on Oct 22, 2023. It is now read-only.

Commit

Permalink
fix logss
Browse files Browse the repository at this point in the history
  • Loading branch information
David Yan committed Aug 29, 2019
1 parent 98915ad commit 4fa53e5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion gateway/src/impls/eth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}),
)
Expand Down
3 changes: 2 additions & 1 deletion gateway/src/impls/oasis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit 4fa53e5

Please sign in to comment.