more logging

This commit is contained in:
Cadey Ratio 2018-01-20 09:45:36 -08:00
parent ec7e506d23
commit b4bb197f80
1 changed files with 3 additions and 1 deletions

View File

@ -68,7 +68,6 @@ func main() {
<-ctx.Done()
signal.Reset(os.Interrupt)
fmt.Printf("%s is now waiting for final shutdown, press ^C again to kill it now\n", os.Args[0])
time.Sleep(30 * time.Second)
}
@ -92,6 +91,7 @@ func setupHTTP(ctx context.Context, s *Server, scfg Config) {
}
go ln.FatalErr(ctx, hs.Serve(l))
ln.Log(ctx, f, ln.Action("http server listen"))
for {
select {
@ -131,6 +131,7 @@ func setupQuic(ctx context.Context, s *Server, scfg Config) {
s.QuicServer = qs
go ln.FatalErr(context.Background(), qs.ListenAndServe())
ln.Log(ctx, f, ln.Action("http server listen"))
for {
select {
@ -166,6 +167,7 @@ func setupTLS(ctx context.Context, s *Server, scfg Config) {
}
go ln.FatalErr(context.Background(), hs.ListenAndServeTLS("", ""))
ln.Log(ctx, f, ln.Action("http server listen"))
for {
select {