mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
only error log when err is not nil
This commit is contained in:
parent
b649358734
commit
65352dccc0
@ -138,7 +138,7 @@ func (g *GrafanaServerImpl) Run() error {
|
||||
err := service.Run(g.context)
|
||||
|
||||
// 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)
|
||||
} else {
|
||||
g.log.Info("Stopped "+reflect.TypeOf(service).Elem().Name(), "reason", err)
|
||||
|
Loading…
Reference in New Issue
Block a user