update delete logging

make delete logging info instead of debug
update the logged text for clarity when deleting db data
changed from "delete" to "cleaning" to clarify the actual type of action taken
This commit is contained in:
Daniel 2019-10-17 15:07:17 -07:00 committed by GitHub
parent 151a0323c8
commit 619012a24d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -20,9 +20,9 @@ func (t *CleanTask) Start(wg *sync.WaitGroup) {
defer wg.Done()
if t.fileExists(t.Scene.Path) {
logger.Debugf("Found: %s", t.Scene.Path)
logger.Debugf("File Found: %s", t.Scene.Path)
} else {
logger.Debugf("Deleting missing file: %s", t.Scene.Path)
logger.Infof("File not found. Cleaning: %s", t.Scene.Path)
t.deleteScene(t.Scene.ID)
}
}