Commit 65352dcc by bergquist

only error log when err is not nil

parent b6493587
...@@ -138,7 +138,7 @@ func (g *GrafanaServerImpl) Run() error { ...@@ -138,7 +138,7 @@ func (g *GrafanaServerImpl) Run() error {
err := service.Run(g.context) err := service.Run(g.context)
// If error is not canceled then the service crashed // If error is not canceled then the service crashed
if err != context.Canceled { if err != context.Canceled && err != nil {
g.log.Error("Stopped "+reflect.TypeOf(service).Elem().Name(), "reason", err) g.log.Error("Stopped "+reflect.TypeOf(service).Elem().Name(), "reason", err)
} else { } else {
g.log.Info("Stopped "+reflect.TypeOf(service).Elem().Name(), "reason", err) g.log.Info("Stopped "+reflect.TypeOf(service).Elem().Name(), "reason", err)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment