Fixed bug with TraceOnce

This commit is contained in:
David Maisonave
2024-08-11 12:36:29 -04:00
parent aed9581485
commit 4fddfafd43
3 changed files with 4 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
# FileMonitor: Ver 0.7.2 (By David Maisonave)
# FileMonitor: Ver 0.7.3 (By David Maisonave)
FileMonitor is a [Stash](https://github.com/stashapp/stash) plugin with the following two main features:
- Updates Stash when any file changes occurs in the Stash library.
- Runs scheduled task based on the scheduler configuration in filemonitor_config.py.

View File

@@ -231,9 +231,9 @@ class StashPluginHelper:
logLev = logging.INFO if logAlways else logging.DEBUG
if self.DEBUG_TRACING or logAlways:
FuncAndLineNo = f"{inspect.currentframe().f_back.f_code.co_name}:{lineNo}"
if FuncAndLineNo in traceOncePreviousHits:
if FuncAndLineNo in self.traceOncePreviousHits:
return
traceOncePreviousHits.append(FuncAndLineNo)
self.traceOncePreviousHits.append(FuncAndLineNo)
if logMsg == "":
logMsg = f"Line number {lineNo}..."
self.Log(logMsg, printTo, logLev, lineNo, self.LEV_TRACE, logAlways)

View File

@@ -1,6 +1,6 @@
name: FileMonitor
description: Monitors the Stash library folders, and updates Stash if any changes occurs in the Stash library paths.
version: 0.7.2
version: 0.7.3
url: https://github.com/David-Maisonave/Axter-Stash/tree/main/plugins/FileMonitor
settings:
recursiveDisabled: