Browse Source

print to stderr since logger might not exist

bergquist 7 years ago
parent
commit
45d9bfca97
1 changed files with 1 additions and 1 deletions
  1. 1 1
      pkg/cmd/grafana-server/server.go

+ 1 - 1
pkg/cmd/grafana-server/server.go

@@ -111,7 +111,7 @@ func (g *GrafanaServerImpl) initLogging() {
 	})
 
 	if err != nil {
-		g.log.Error(err.Error())
+		fmt.Fprintf(os.Stderr, "Failed to start grafana. error: %s\n", err.Error())
 		os.Exit(1)
 	}