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)