feat: add -debug flag with file logging to fscan_debug.log

This commit is contained in:
ZacharyZcR
2026-05-12 15:37:12 +08:00
parent c1cd6289e8
commit 660e0574ef
7 changed files with 60 additions and 1 deletions
+1
View File
@@ -65,6 +65,7 @@ func main() {
os.Exit(130) // 128 + SIGINT(2) = 130,标准的中断退出码
}()
defer func() { _ = common.Cleanup() }()
defer common.CloseLogger()
// 执行扫描
core.RunScan(context.Background(), *result.Info, result.Session)