|
|
@ -133,7 +133,7 @@ func (ng *engine) serve(router Router) error {
|
|
|
|
case <-ng.dieChan:
|
|
|
|
case <-ng.dieChan:
|
|
|
|
log.Info("Server will shutdown in a few seconds")
|
|
|
|
log.Info("Server will shutdown in a few seconds")
|
|
|
|
case s := <-sg:
|
|
|
|
case s := <-sg:
|
|
|
|
log.Infof("Server got signal: %ng", s)
|
|
|
|
log.Infof("Server got signal: %s", s)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
log.Info("Server is stopping...")
|
|
|
|
log.Info("Server is stopping...")
|
|
|
|