Closed kakuilan closed 1 year ago
You MUST delete the content above including this line before posting, otherwise your issue will be invalid.
var tagExtracter *idf.TagExtracter var onceSeg sync.Once var err error onceSeg.Do(func() { seg := gse.Segmenter{ SkipLog: true, } err = seg.LoadDict() if err == nil { var te idf.TagExtracter te.WithGse(seg) err = te.LoadIdf() if err == nil { tagExtracter = &te } } })
开启了SkipLog,但仍然打印了加载字典文件的日志 2023/05/28 11:29:08 Dict files path: [/var/www/api/vendor/github.com/go-ego/gse/data/dict/zh/idf.txt] 2023/05/28 11:29:08 Load the gse dictionary: "/var/www/api/vendor/github.com/go-ego/gse/data/dict/zh/idf.txt" 2023/05/28 11:29:10 Gse dictionary loaded finished.
...
期望开启了SkipLog,不打印任何日志
You MUST delete the content above including this line before posting, otherwise your issue will be invalid.
Description
开启了SkipLog,但仍然打印了加载字典文件的日志 2023/05/28 11:29:08 Dict files path: [/var/www/api/vendor/github.com/go-ego/gse/data/dict/zh/idf.txt] 2023/05/28 11:29:08 Load the gse dictionary: "/var/www/api/vendor/github.com/go-ego/gse/data/dict/zh/idf.txt" 2023/05/28 11:29:10 Gse dictionary loaded finished.
...
期望开启了SkipLog,不打印任何日志