fix: log close/flush was done too early, before server shutdown log message was called, fixes #12438

This commit is contained in:
Torkel Ödegaard
2018-06-28 04:38:23 -07:00
parent 443ff5deb4
commit 7a7c6f8fab
2 changed files with 2 additions and 4 deletions
+2
View File
@@ -185,6 +185,8 @@ func (g *GrafanaServerImpl) Exit(reason error) {
}
g.log.Error("Server shutdown", "reason", reason)
log.Close()
os.Exit(code)
}