mirror of
https://github.com/dcarrillo/whatismyip.git
synced 2025-07-04 05:49:26 +00:00
Move logs about stopping servers to the proper place
This commit is contained in:
@ -36,10 +36,10 @@ func (t *TCPServer) Start() {
|
||||
log.Fatal(err)
|
||||
}
|
||||
}()
|
||||
log.Printf("Stopping TCP server...")
|
||||
}
|
||||
|
||||
func (t *TCPServer) Stop() {
|
||||
log.Printf("Stopping TCP server...")
|
||||
if err := t.server.Shutdown(t.ctx); err != nil {
|
||||
log.Printf("TCP server forced to shutdown: %s", err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user