From 3dc3ad75f6e4e6421aa118cd99896048cec2588c Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Thu, 22 Jul 2021 16:50:30 -0700 Subject: [PATCH] Cleanup errors that are not fatal during filesystem cleanup --- core/transcoder/hlsFilesystemCleanup.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/core/transcoder/hlsFilesystemCleanup.go b/core/transcoder/hlsFilesystemCleanup.go index 93bfdbbff..c9071f716 100644 --- a/core/transcoder/hlsFilesystemCleanup.go +++ b/core/transcoder/hlsFilesystemCleanup.go @@ -19,7 +19,7 @@ func CleanupOldContent(baseDirectory string) { files, err := getAllFilesRecursive(baseDirectory) if err != nil { - log.Errorln("Unable to cleanup old video files", err) + log.Debugln("Unable to cleanup old video files", err) return } @@ -37,7 +37,7 @@ func CleanupOldContent(baseDirectory string) { fileToDelete := filepath.Join(baseDirectory, directory, file.Name()) err := os.Remove(fileToDelete) if err != nil { - log.Errorln(err) + log.Debugln(err) } } } @@ -64,7 +64,6 @@ func getAllFilesRecursive(baseDirectory string) (map[string][]os.FileInfo, error }) if err != nil { - log.Fatalf(err.Error()) return nil, err }