refactor(global): 移除雪花算法调试代码并优化日志初始化

This commit is contained in:
1
2025-09-22 14:55:44 +00:00
parent c0cda6fa58
commit 9dbc0fb051

View File

@@ -27,9 +27,9 @@ func init() {
// 创建 IdGeneratorOptions 对象,可在构造函数中输入 WorkerId
Loger.SetFlags(glog.F_TIME_STD | glog.F_FILE_LONG) //设置flag
Loger.Print(ctx, "初始化日志")
glog.Debug(context.Background(), "初始化雪花算法", DefaultGenerator.Get())
// for i := 0; i < 600; i++ {
// glog.Debug(context.Background(), i, "初始化雪花算法", DefaultGenerator.Get())
// }
Filter, _ = sensitive.NewFilter(
sensitive.StoreOption{Type: sensitive.StoreMemory}, // 基于内存