Server: Exit with 0 if no error (#23312)

Make grafana-server exit with 0 if no error occurred.
This commit is contained in:
Arve Knudsen 2020-04-03 11:34:18 +02:00 committed by GitHub
parent 54ddaecea1
commit 5645d74cbc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -115,8 +115,10 @@ func main() {
go listenToSystemSignals(server)
err := server.Run()
code := server.ExitCode(err)
code := 0
if err != nil {
code = server.ExitCode(err)
}
trace.Stop()
log.Close()