Skip to content

Commit

Permalink
Log target when adding range sync chain
Browse files Browse the repository at this point in the history
  • Loading branch information
dapplion committed Jun 10, 2022
1 parent 0787d17 commit 3c02268
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/lodestar/src/sync/range/range.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import PeerId from "peer-id";
import {computeEpochAtSlot, computeStartSlotAtEpoch} from "@chainsafe/lodestar-beacon-state-transition";
import {IBeaconConfig} from "@chainsafe/lodestar-config";
import {Epoch, Slot, phase0} from "@chainsafe/lodestar-types";
import {ILogger} from "@chainsafe/lodestar-utils";
import {ILogger, toHex} from "@chainsafe/lodestar-utils";
import {IBeaconChain} from "../../chain/index.js";
import {INetwork} from "../../network/index.js";
import {IMetrics} from "../../metrics/index.js";
Expand Down Expand Up @@ -251,7 +251,7 @@ export class RangeSync extends (EventEmitter as {new (): RangeSyncEmitter}) {
this.opts
);
this.chains.set(syncType, syncChain);
this.logger.verbose("Added syncChain", {syncType});
this.logger.verbose("Added syncChain", {syncType, targetSlot: target.slot, targetRoot: toHex(target.root)});
this.metrics?.syncRange.syncChainsEvents.inc({syncType: syncChain.syncType, event: "add"});
}

Expand Down

0 comments on commit 3c02268

Please sign in to comment.