Skip to content

Commit

Permalink
fix(sync): Prevent state sync from being terminally verbose (#7864)
Browse files Browse the repository at this point in the history
`new_shard_sync` can be huge. Printing the whole object makes no sense.

cc: @posvyatokum
  • Loading branch information
nikurt committed Oct 25, 2022
1 parent 663f210 commit a7db5fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chain/client/src/sync.rs
Expand Up @@ -1223,7 +1223,7 @@ impl StateSync {
state_split_scheduler: &dyn Fn(StateSplitRequest),
) -> Result<StateSyncResult, near_chain::Error> {
let _span = tracing::debug_span!(target: "sync", "run", sync = "StateSync").entered();
debug!(target: "sync", %sync_hash, ?new_shard_sync, ?tracking_shards, "syncing state");
debug!(target: "sync", %sync_hash, ?tracking_shards, "syncing state");
let prev_hash = *chain.get_block_header(&sync_hash)?.prev_hash();
let now = Clock::utc();

Expand Down

0 comments on commit a7db5fb

Please sign in to comment.