print to stderr since logger might not exist

This commit is contained in:
bergquist 2018-03-28 22:51:21 +02:00
parent 2ccbf12d1c
commit 45d9bfca97

View File

@ -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)
}