mirror of
https://github.com/shadow1ng/fscan.git
synced 2026-10-24 17:04:27 +00:00
fix: -debug 日志文件写入失败,applyLogLevel 重建 Logger 时丢失 DebugLogFile 配置
This commit is contained in:
1 parent
e6c5e5a9a8
commit
67f2251da3
1 file changed
+3
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user