mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-01-23 04:50:59 +00:00
Log warning when running without metrics support
This commit is contained in:
parent
92750d5313
commit
bc977799f6
@ -1319,12 +1319,14 @@ programMain:
|
|||||||
|
|
||||||
config.createDumpDirs()
|
config.createDumpDirs()
|
||||||
|
|
||||||
when useInsecureFeatures:
|
|
||||||
if config.metricsEnabled:
|
if config.metricsEnabled:
|
||||||
|
when useInsecureFeatures:
|
||||||
let metricsAddress = config.metricsAddress
|
let metricsAddress = config.metricsAddress
|
||||||
notice "Starting metrics HTTP server",
|
notice "Starting metrics HTTP server",
|
||||||
url = "http://" & $metricsAddress & ":" & $config.metricsPort & "/metrics"
|
url = "http://" & $metricsAddress & ":" & $config.metricsPort & "/metrics"
|
||||||
metrics.startHttpServer($metricsAddress, config.metricsPort)
|
metrics.startHttpServer($metricsAddress, config.metricsPort)
|
||||||
|
else:
|
||||||
|
warn "Metrics support disabled, see https://status-im.github.io/nimbus-eth2/metrics-pretty-pictures.html#simple-metrics"
|
||||||
|
|
||||||
if depositContractAddress.isNone or depositContractDeployedAt.isNone:
|
if depositContractAddress.isNone or depositContractDeployedAt.isNone:
|
||||||
echo "Please specify the a network through the --network option"
|
echo "Please specify the a network through the --network option"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user