From 562c8effc333865614ba87cd67d2b38bba99e4a8 Mon Sep 17 00:00:00 2001 From: Saxon Date: Sat, 2 Mar 2019 15:23:33 +1030 Subject: [PATCH] cmd/revid-cli: adjusted logging levels to make more appropriate --- cmd/revid-cli/main.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/revid-cli/main.go b/cmd/revid-cli/main.go index 468b89d3..59c9b00e 100644 --- a/cmd/revid-cli/main.go +++ b/cmd/revid-cli/main.go @@ -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 }