add a hidden config to disable Syncer logging to the console (#7049)

This commit is contained in:
Maurycy Zarzycki
2022-11-20 17:26:14 +00:00
committed by GitHub
parent ea150029f5
commit 6955f14c3c
2 changed files with 18 additions and 1 deletions
+5 -1
View File
@@ -121,7 +121,11 @@ exports.startup = function() {
});
// Set up the syncer object if we've got a syncadaptor
if($tw.syncadaptor) {
$tw.syncer = new $tw.Syncer({wiki: $tw.wiki, syncadaptor: $tw.syncadaptor});
$tw.syncer = new $tw.Syncer({
wiki: $tw.wiki,
syncadaptor: $tw.syncadaptor,
logging: $tw.wiki.getTiddlerText('$:/config/SyncLogging', "yes") === "yes"
});
}
// Setup the saver handler
$tw.saverHandler = new $tw.SaverHandler({