Fix http server shutdown loging

This commit is contained in:
Martin Boehm 2018-01-31 15:34:20 +01:00
parent a403b8d0fe
commit dec566e817

View File

@ -121,7 +121,11 @@ func main() {
go func() { go func() {
err = httpServer.Run() err = httpServer.Run()
if err != nil { if err != nil {
glog.Fatal("https: ", err) if err.Error() == "http: Server closed" {
glog.Info(err)
} else {
glog.Fatal(err)
}
} }
}() }()
} }
@ -216,7 +220,6 @@ func waitForSignalAndShutdown(s *server.HttpServer, mq *bchain.MQ, timeout time.
} }
close(syncChannel) close(syncChannel)
} }
func printResult(txid string) error { func printResult(txid string) error {