diff --git a/core/modules/background-actions.js b/core/modules/background-actions.js index 9317bbbe441..e3829056fa7 100644 --- a/core/modules/background-actions.js +++ b/core/modules/background-actions.js @@ -78,7 +78,6 @@ class BackgroundActionTracker { fnProcess: (changes) => { if(this.hasChanged) { this.hasChanged = false; - console.log("Processing background action", this.title); const tiddler = this.wiki.getTiddler(this.title); let doActions = true; if(tiddler && tiddler.fields.platforms) { @@ -89,6 +88,7 @@ class BackgroundActionTracker { } } if(doActions) { + console.log("Processing background action", this.title); this.wiki.invokeActionString( this.actions, null, diff --git a/editions/tw5.com/tiddlers/releasenotes/5.5.0/#9891.tid b/editions/tw5.com/tiddlers/releasenotes/5.5.0/#9891.tid new file mode 100644 index 00000000000..263fc22408d --- /dev/null +++ b/editions/tw5.com/tiddlers/releasenotes/5.5.0/#9891.tid @@ -0,0 +1,10 @@ +title: $:/changenotes/5.5.0/#9891 +description: Move background action log inside platforms check to avoid spurious server-side logs +release: 5.5.0 +tags: $:/tags/ChangeNote +change-type: bugfix +change-category: internal +github-links: https://github.com/TiddlyWiki/TiddlyWiki5/pull/9891 +github-contributors: linonetwo + +Background actions with `platforms: browser` were logging on the server even though execution was correctly skipped. The log now only prints when the action actually runs.