diff --git a/modules/loghandler/loghandler.go b/modules/loghandler/loghandler.go index e32918b..4535c4c 100644 --- a/modules/loghandler/loghandler.go +++ b/modules/loghandler/loghandler.go @@ -173,7 +173,6 @@ func StartBackgroundLogDeleter() { } func CheckForDeletableLogs() { - daysToKeepLogs := config.Cfg.DaysToKeepLogs logFolder := config.Cfg.LogFolder @@ -184,7 +183,6 @@ func CheckForDeletableLogs() { return err } - if !info.IsDir() { // check if the file is older than the daysToKeepLogs // get the date from the file name