mirror of
https://github.com/dcarrillo/whatismyip.git
synced 2024-10-31 23:11:14 +00:00
Move logs about stopping servers to the proper place
This commit is contained in:
parent
8783db018b
commit
b5fa3be506
@ -44,10 +44,10 @@ func (q *QuicServer) Start() {
|
|||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
log.Printf("Stopping QUIC server...")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (q *QuicServer) Stop() {
|
func (q *QuicServer) Stop() {
|
||||||
|
log.Printf("Stopping QUIC server...")
|
||||||
if err := q.server.Close(); err != nil {
|
if err := q.server.Close(); err != nil {
|
||||||
log.Printf("QUIC server forced to shutdown")
|
log.Printf("QUIC server forced to shutdown")
|
||||||
}
|
}
|
||||||
|
@ -36,10 +36,10 @@ func (t *TCPServer) Start() {
|
|||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
log.Printf("Stopping TCP server...")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (t *TCPServer) Stop() {
|
func (t *TCPServer) Stop() {
|
||||||
|
log.Printf("Stopping TCP server...")
|
||||||
if err := t.server.Shutdown(t.ctx); err != nil {
|
if err := t.server.Shutdown(t.ctx); err != nil {
|
||||||
log.Printf("TCP server forced to shutdown: %s", err)
|
log.Printf("TCP server forced to shutdown: %s", err)
|
||||||
}
|
}
|
||||||
|
@ -37,10 +37,10 @@ func (t *TLSServer) Start() {
|
|||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
log.Printf("Stopping TLS server...")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (t *TLSServer) Stop() {
|
func (t *TLSServer) Stop() {
|
||||||
|
log.Printf("Stopping TLS server...")
|
||||||
if err := t.server.Shutdown(t.ctx); err != nil {
|
if err := t.server.Shutdown(t.ctx); err != nil {
|
||||||
log.Printf("TLS server forced to shutdown: %s", err)
|
log.Printf("TLS server forced to shutdown: %s", err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user