From f949adb40c4525269ecc03cdff11265350475dba Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Sun, 28 Jun 2020 15:30:43 -0700 Subject: [PATCH] Remove panic and log error if file no longer exists. Closes #31 --- core/playlist/monitor.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/playlist/monitor.go b/core/playlist/monitor.go index 4b3419278..7e9d50be9 100644 --- a/core/playlist/monitor.go +++ b/core/playlist/monitor.go @@ -84,8 +84,7 @@ func StartVideoContentMonitor(storage models.ChunkStorageProvider) error { go func() { newObjectPath, err := storage.Save(path.Join(config.Config.PrivateHLSPath, segment.RelativeUploadPath), 0) if err != nil { - log.Println("failed to save the file to the chunk storage") - panic(err) + log.Errorln("failed to save the file to the chunk storage.", err) } newObjectPathChannel <- newObjectPath