mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-01-11 06:46:10 +00:00
log NimVersion (#3937)
This commit is contained in:
parent
607de676cb
commit
b1974d90eb
@ -145,6 +145,9 @@ declareGauge next_action_wait,
|
|||||||
declareGauge versionGauge, "Nimbus version info (as metric labels)", ["version", "commit"], name = "version"
|
declareGauge versionGauge, "Nimbus version info (as metric labels)", ["version", "commit"], name = "version"
|
||||||
versionGauge.set(1, labelValues=[fullVersionStr, gitRevision])
|
versionGauge.set(1, labelValues=[fullVersionStr, gitRevision])
|
||||||
|
|
||||||
|
declareGauge nimVersionGauge, "Nim version info", ["nim_version"], name = "Nim_version"
|
||||||
|
nimVersionGauge.set(1, labelValues=[NimVersion])
|
||||||
|
|
||||||
logScope: topics = "beacnde"
|
logScope: topics = "beacnde"
|
||||||
|
|
||||||
func getPandas(stdoutKind: StdoutLogKind): VanityLogs =
|
func getPandas(stdoutKind: StdoutLogKind): VanityLogs =
|
||||||
@ -1659,6 +1662,7 @@ proc start*(node: BeaconNode) {.raises: [Defect, CatchableError].} =
|
|||||||
|
|
||||||
notice "Starting beacon node",
|
notice "Starting beacon node",
|
||||||
version = fullVersionStr,
|
version = fullVersionStr,
|
||||||
|
nimVersion = NimVersion,
|
||||||
enr = node.network.announcedENR.toURI,
|
enr = node.network.announcedENR.toURI,
|
||||||
peerId = $node.network.switch.peerInfo.peerId,
|
peerId = $node.network.switch.peerInfo.peerId,
|
||||||
timeSinceFinalization =
|
timeSinceFinalization =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user