mirror of
https://github.com/shadow1ng/fscan.git
synced 2026-09-26 21:21:53 +08:00
refactor(logging): 统一日志前缀,删除废弃的 LogBase
- 删除 LogBase 函数,所有调用迁移到 LogInfo/LogError - 新增 PrefixDebug ([.]) 前缀,所有日志级别现在都有前缀 - 修复日志输出缩进不一致的问题 - 删除未使用的 PrefixDefault 常量
This commit is contained in:
@@ -59,7 +59,7 @@ func main() {
|
||||
signal.Notify(sigChan, os.Interrupt, syscall.SIGTERM)
|
||||
go func() {
|
||||
<-sigChan
|
||||
common.LogBase(i18n.GetText("received_exit_signal"))
|
||||
common.LogInfo(i18n.GetText("received_exit_signal"))
|
||||
_ = common.Cleanup() // 确保结果写入磁盘
|
||||
os.Exit(130) // 128 + SIGINT(2) = 130,标准的中断退出码
|
||||
}()
|
||||
|
||||
Reference in New Issue
Block a user