Skip to content

Commit

Permalink
Don't print out huge serialized structures (MystenLabs#2619)
Browse files Browse the repository at this point in the history
  • Loading branch information
mystenmark authored Jun 29, 2022
1 parent 759456c commit dbdae47
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions crates/sui-core/src/gateway_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ where
let tx_digest = transaction.digest();
let span = tracing::debug_span!(
"execute_transaction",
?tx_digest,
digest = ?tx_digest,
tx_kind = transaction.data.kind_as_str()
);
let exec_result = self
Expand All @@ -507,8 +507,7 @@ where
let (new_certificate, effects) = exec_result?;

debug!(
?new_certificate,
?effects,
digest = ?tx_digest,
"Transaction completed successfully"
);

Expand Down Expand Up @@ -687,7 +686,7 @@ where
?package,
?created_objects,
?updated_gas,
?certificate,
digest = ?certificate.digest(),
"Created Publish response"
);

Expand Down Expand Up @@ -969,7 +968,7 @@ where
let tx_kind = tx.data.kind.clone();
let tx_digest = tx.digest();

debug!(?tx_digest, ?tx, "Received execute_transaction request");
debug!(digest = ?tx_digest, "Received execute_transaction request");

let span = tracing::debug_span!(
"gateway_execute_transaction",
Expand Down Expand Up @@ -1017,7 +1016,7 @@ where
let (certificate, effects) = res.unwrap();
let effects = effects.effects;

debug!(?tx, ?certificate, ?effects, "Transaction succeeded");
debug!(digest = ?tx_digest, "Transaction succeeded");
// Create custom response base on the request type
if let TransactionKind::Single(tx_kind) = tx_kind {
match tx_kind {
Expand Down

0 comments on commit dbdae47

Please sign in to comment.