From d7071b7b8eb29c8cffe2b8b70f6c965d9d9374e2 Mon Sep 17 00:00:00 2001 From: ZacharyZcR Date: Sun, 14 Jun 2026 09:48:03 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20-debug=20=E6=97=A5=E5=BF=97=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E5=86=99=E5=85=A5=E5=A4=B1=E8=B4=A5=EF=BC=8CapplyLogL?= =?UTF-8?q?evel=20=E9=87=8D=E5=BB=BA=20Logger=20=E6=97=B6=E4=B8=A2?= =?UTF-8?q?=E5=A4=B1=20DebugLogFile=20=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/parse.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/parse.go b/common/parse.go index 60b0508..69e0aca 100644 --- a/common/parse.go +++ b/common/parse.go @@ -45,6 +45,9 @@ func applyLogLevel() { StartTime: GetGlobalState().GetStartTime(), LevelColors: logging.GetDefaultLevelColors(), } + if fv.Debug { + config.DebugLogFile = "fscan_debug.log" + } newLogger := logging.NewLogger(config) newLogger.SetCoordinatedOutput(LogWithProgress)