mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
app: clarify error messages when -storageNode
arg is missing in vminsert and vmselect
This commit is contained in:
parent
fab1962e02
commit
cb8104cf77
2 changed files with 4 additions and 4 deletions
|
@ -34,10 +34,10 @@ func main() {
|
||||||
buildinfo.Init()
|
buildinfo.Init()
|
||||||
logger.Init()
|
logger.Init()
|
||||||
|
|
||||||
logger.Infof("initializing netstorage for storageNodes=%s...", *storageNodes)
|
logger.Infof("initializing netstorage for storageNodes %s...", *storageNodes)
|
||||||
startTime := time.Now()
|
startTime := time.Now()
|
||||||
if len(*storageNodes) == 0 {
|
if len(*storageNodes) == 0 {
|
||||||
logger.Fatalf("storageNodes cannot be empty")
|
logger.Fatalf("missing -storageNode arg")
|
||||||
}
|
}
|
||||||
netstorage.InitStorageNodes(*storageNodes)
|
netstorage.InitStorageNodes(*storageNodes)
|
||||||
logger.Infof("successfully initialized netstorage in %s", time.Since(startTime))
|
logger.Infof("successfully initialized netstorage in %s", time.Since(startTime))
|
||||||
|
|
|
@ -34,10 +34,10 @@ func main() {
|
||||||
buildinfo.Init()
|
buildinfo.Init()
|
||||||
logger.Init()
|
logger.Init()
|
||||||
|
|
||||||
logger.Infof("starting netstorage at storageNodes=%s", *storageNodes)
|
logger.Infof("starting netstorage at storageNodes %s", *storageNodes)
|
||||||
startTime := time.Now()
|
startTime := time.Now()
|
||||||
if len(*storageNodes) == 0 {
|
if len(*storageNodes) == 0 {
|
||||||
logger.Fatalf("storageNodes cannot be empty")
|
logger.Fatalf("missing -storageNode arg")
|
||||||
}
|
}
|
||||||
netstorage.InitStorageNodes(*storageNodes)
|
netstorage.InitStorageNodes(*storageNodes)
|
||||||
logger.Infof("started netstorage in %s", time.Since(startTime))
|
logger.Infof("started netstorage in %s", time.Since(startTime))
|
||||||
|
|
Loading…
Reference in a new issue