From e5184a2c34db9f7531d7912889d7f9b4933bfb4e Mon Sep 17 00:00:00 2001 From: David Maisonave <47364845+David-Maisonave@users.noreply.github.com> Date: Tue, 13 Aug 2024 04:27:53 -0400 Subject: [PATCH] Update filemonitor.py --- plugins/FileMonitor/filemonitor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/FileMonitor/filemonitor.py b/plugins/FileMonitor/filemonitor.py index ca7bcf5..5f404d8 100644 --- a/plugins/FileMonitor/filemonitor.py +++ b/plugins/FileMonitor/filemonitor.py @@ -203,7 +203,7 @@ class StashScheduler: # Stash Scheduler plugin.LogOnce(f"Exiting trimDbFiles, because path {dbPath} does not exists.") return if len(dbPath) < 5: # For safety and security, short path not supported. - plugin.LogOnce(f"Exiting trimDbFiles, because path {dbPath} is to short. Len={len(dbPath)}. Path string must be at least 5 characters in length.") + plugin.Warn(f"Exiting trimDbFiles, because path {dbPath} is to short. Len={len(dbPath)}. Path string must be at least 5 characters in length.") return stashPrefixSqlDbFileName = "stash-go.sqlite." dbFiles = sorted(os.listdir(dbPath)) @@ -214,7 +214,7 @@ class StashScheduler: # Stash Scheduler plugin.Warn(f"Deleting DB file {dbFilePath}") os.remove(dbFilePath) else: - plugin.LogOnce(f"Skipping deleting file {dbFiles[i]} because the file doesn't start with {stashPrefixSqlDbFileName}.") + plugin.LogOnce(f"Skipping deleting file '{dbFiles[i]}', because the file doesn't start with string '{stashPrefixSqlDbFileName}'.") def checkSchedulePending(self): import schedule # pip install schedule # https://github.com/dbader/schedule