mirror of https://bitbucket.org/ausocean/av.git
cmd/revid-cli: adjusted logging levels to make more appropriate
This commit is contained in:
parent
01474ee870
commit
562c8effc3
|
@ -311,14 +311,14 @@ func run(cfg revid.Config) {
|
|||
if rv == nil {
|
||||
rv, err = revid.New(cfg, ns)
|
||||
if err != nil {
|
||||
log.Log(logger.Error, pkg+"could not initialise revid", "error", err.Error())
|
||||
log.Log(logger.Warning, pkg+"could not initialise revid", "error", err.Error())
|
||||
goto sleep
|
||||
}
|
||||
}
|
||||
|
||||
err = rv.Update(vars)
|
||||
if err != nil {
|
||||
log.Log(logger.Error, pkg+"Couldn't update revid", "error", err.Error())
|
||||
log.Log(logger.Warning, pkg+"Couldn't update revid", "error", err.Error())
|
||||
goto sleep
|
||||
}
|
||||
|
||||
|
@ -328,7 +328,7 @@ func run(cfg revid.Config) {
|
|||
case normal:
|
||||
err = rv.Start()
|
||||
if err != nil {
|
||||
log.Log(logger.Error, pkg+"could not start revid", "error", err.Error())
|
||||
log.Log(logger.Warning, pkg+"could not start revid", "error", err.Error())
|
||||
ns.SetMode(paused, &vs)
|
||||
goto sleep
|
||||
}
|
||||
|
@ -337,7 +337,7 @@ func run(cfg revid.Config) {
|
|||
|
||||
err = rv.Start()
|
||||
if err != nil {
|
||||
log.Log(logger.Error, pkg+"could not start burst", "error", err.Error())
|
||||
log.Log(logger.Warning, pkg+"could not start burst", "error", err.Error())
|
||||
ns.SetMode(paused, &vs)
|
||||
goto sleep
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue