forked from Github/Axter-Stash
Fixed bug with TraceOnce
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user