recessive: 日志设置生产模式和开发模式写入文件支持开关

This commit is contained in:
kercylan98 2023-07-03 13:38:33 +08:00
parent c6073a97a8
commit 3d9c8a332f
1 changed files with 1 additions and 1 deletions

View File

@ -202,7 +202,7 @@ func (slf *Server) Run(addr string) error {
})
case NetworkHttp:
if slf.prod {
log.SetProd()
log.SetProd(slf.prod)
gin.SetMode(gin.ReleaseMode)
}
go func() {