fix 菜单权限编辑

This commit is contained in:
maxbad
2023-05-09 20:13:13 +08:00
parent 6295adbb9d
commit 42a87803dc
4 changed files with 36 additions and 11 deletions

View File

@@ -27,6 +27,9 @@ import (
)
func Init(ctx context.Context) {
// 设置服务日志处理
g.Log().SetHandlers(LoggingServeLogHandler)
_, err := g.Cfg().Get(ctx, "hotgo.debug")
if err != nil {
g.Log().Fatal(ctx, "配置读取异常:", err, "\r\n你确定 config/config.yaml 文件存在且格式正确吗?\r\n")
@@ -46,9 +49,6 @@ func Init(ctx context.Context) {
// 设置缓存适配器
cache.SetAdapter(ctx)
// 设置服务日志处理
g.Log().SetHandlers(LoggingServeLogHandler)
// 启动服务监控
service.AdminMonitor().StartMonitor(ctx)