log NimVersion (#3937)

This commit is contained in:
Miran 2022-08-12 16:53:15 +02:00 committed by GitHub
parent 607de676cb
commit b1974d90eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -145,6 +145,9 @@ declareGauge next_action_wait,
declareGauge versionGauge, "Nimbus version info (as metric labels)", ["version", "commit"], name = "version"
versionGauge.set(1, labelValues=[fullVersionStr, gitRevision])
declareGauge nimVersionGauge, "Nim version info", ["nim_version"], name = "Nim_version"
nimVersionGauge.set(1, labelValues=[NimVersion])
logScope: topics = "beacnde"
func getPandas(stdoutKind: StdoutLogKind): VanityLogs =
@ -1659,6 +1662,7 @@ proc start*(node: BeaconNode) {.raises: [Defect, CatchableError].} =
notice "Starting beacon node",
version = fullVersionStr,
nimVersion = NimVersion,
enr = node.network.announcedENR.toURI,
peerId = $node.network.switch.peerInfo.peerId,
timeSinceFinalization =