mirror of
https://github.com/skyle1995/NetworkAuth.git
synced 2026-05-25 02:24:05 +08:00
Optimize the output of sensitive log information
This commit is contained in:
@@ -174,6 +174,8 @@ func startServer(server *http.Server) {
|
||||
|
||||
// 等待中断信号
|
||||
<-sigChan
|
||||
// 清除终端上的 ^C 字符并移动光标到行首
|
||||
fmt.Print("\r\033[K")
|
||||
logger.Info("收到关闭信号,正在优雅关闭服务器...")
|
||||
|
||||
// 创建一个带超时的上下文
|
||||
|
||||
Reference in New Issue
Block a user