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:
parent
ea150029f5
commit
6955f14c3c
@ -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({
|
||||
|
@ -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
|
Loading…
Reference in New Issue
Block a user