Fix http server shutdown loging

pull/1/head
Martin Boehm 2018-01-31 15:34:20 +01:00
parent a403b8d0fe
commit dec566e817
1 changed files with 5 additions and 2 deletions

View File

@ -121,7 +121,11 @@ func main() {
go func() {
err = httpServer.Run()
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)
}
func printResult(txid string) error {