"Performant Logging" feature in Advanced
This commit is contained in:
parent
979a36c79a
commit
0ca0b34ff0
3 changed files with 24 additions and 1 deletions
|
@ -243,7 +243,8 @@ export class Store {
|
||||||
"AudioContext": true,
|
"AudioContext": true,
|
||||||
"experiments": [],
|
"experiments": [],
|
||||||
"playlistTrackMapping": true,
|
"playlistTrackMapping": true,
|
||||||
"ffmpegLocation": ""
|
"ffmpegLocation": "",
|
||||||
|
"disableLogging": false
|
||||||
},
|
},
|
||||||
"connectUser": {
|
"connectUser": {
|
||||||
"auth": null,
|
"auth": null,
|
||||||
|
|
|
@ -17,6 +17,17 @@ window.CiderCache = CiderCache
|
||||||
window.CiderFrontAPI = CiderFrontAPI
|
window.CiderFrontAPI = CiderFrontAPI
|
||||||
window.wsapi = wsapi
|
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
|
// Mount Vue to #app
|
||||||
app.$mount("#app")
|
app.$mount("#app")
|
||||||
|
|
||||||
|
|
|
@ -1127,6 +1127,17 @@
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</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>
|
</div>
|
||||||
|
|
||||||
<!-- Experimental Settings -->
|
<!-- Experimental Settings -->
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue