"Performant Logging" feature in Advanced

This commit is contained in:
maikirakiwi 2022-06-21 17:01:25 -07:00
parent 979a36c79a
commit 0ca0b34ff0
3 changed files with 24 additions and 1 deletions

View file

@ -17,6 +17,17 @@ window.CiderCache = CiderCache
window.CiderFrontAPI = CiderFrontAPI
window.wsapi = wsapi
if (app.cfg.advanced.disableLogging === true) {
window.console = {
log: function() {},
error: function() {},
warn: function() {},
assert: function() {},
debug: function() {}
}
}
// Mount Vue to #app
app.$mount("#app")

View file

@ -1127,6 +1127,17 @@
</button>
</div>
</div>
<div class="md-option-line">
<div class="md-option-segment">
Performant Logging
<small>Disables debug logging, resulting in a slightly faster Cider. (Requires relaunch)</small>
</div>
<div class="md-option-segment md-option-segment_auto">
<label>
<input type="checkbox" v-model="app.cfg.advanced.disableLogging" switch/>
</label>
</div>
</div>
</div>
<!-- Experimental Settings -->