api: fix log message when stopping the API server
This commit is contained in:
parent
5fdd9d1a07
commit
116ce1a806
@ -109,9 +109,11 @@ func listenAndServeWithStopper(srv *graceful.Server, st *utils.Stopper, certFile
|
|||||||
err = srv.ListenAndServe()
|
err = srv.ListenAndServe()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if err != nil {
|
||||||
if opErr, ok := err.(*net.OpError); !ok || (ok && opErr.Op != "accept") {
|
if opErr, ok := err.(*net.OpError); !ok || (ok && opErr.Op != "accept") {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// tlsClientConfig initializes a *tls.Config using the given CA. The resulting
|
// tlsClientConfig initializes a *tls.Config using the given CA. The resulting
|
||||||
|
Loading…
Reference in New Issue
Block a user