fix: 修复 Server got signal 输出错误

main v0.1.2
NorthLan 2 years ago
parent b7f7d79ce4
commit f146355b96

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

Loading…
Cancel
Save