1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-23 10:07:19 +00:00

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

This commit is contained in:
Maurycy Zarzycki 2022-11-20 18:26:14 +01:00 committed by GitHub
parent ea150029f5
commit 6955f14c3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 1 deletions

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({

View File

@ -0,0 +1,13 @@
created: 20190903192324700
modified: 20190903192324700
tags: [[Hidden Settings]]
title: Hidden Setting: Sync Logging
type: text/vnd.tiddlywiki
Specifies whether [[Syncadaptor|https://tiddlywiki.com/dev/#Syncadaptor]] should log information to the browser's developer console or not.
Defaults to `yes`. Set to `no` to disable logging.
Changing needs restart to take effect.
$:/config/SyncLogging