app: clarify error messages when -storageNode arg is missing in vminsert and vmselect

This commit is contained in:
Aliaksandr Valialkin 2019-07-20 10:21:59 +03:00
parent fab1962e02
commit cb8104cf77
2 changed files with 4 additions and 4 deletions

View File

@ -34,10 +34,10 @@ func main() {
buildinfo.Init()
logger.Init()
logger.Infof("initializing netstorage for storageNodes=%s...", *storageNodes)
logger.Infof("initializing netstorage for storageNodes %s...", *storageNodes)
startTime := time.Now()
if len(*storageNodes) == 0 {
logger.Fatalf("storageNodes cannot be empty")
logger.Fatalf("missing -storageNode arg")
}
netstorage.InitStorageNodes(*storageNodes)
logger.Infof("successfully initialized netstorage in %s", time.Since(startTime))

View File

@ -34,10 +34,10 @@ func main() {
buildinfo.Init()
logger.Init()
logger.Infof("starting netstorage at storageNodes=%s", *storageNodes)
logger.Infof("starting netstorage at storageNodes %s", *storageNodes)
startTime := time.Now()
if len(*storageNodes) == 0 {
logger.Fatalf("storageNodes cannot be empty")
logger.Fatalf("missing -storageNode arg")
}
netstorage.InitStorageNodes(*storageNodes)
logger.Infof("started netstorage in %s", time.Since(startTime))