This commit is contained in:
Aaron Meese 2024-04-15 02:37:43 +01:00 committed by GitHub
commit 8709aa9e4c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 10 additions and 0 deletions

View File

@ -545,6 +545,16 @@ class App {
this.manager.options.changeTheme(Utils.escapeHtml(this.uriParams.theme));
}
// Read in logging level from URI params
if (this.uriParams.logging) {
const validOptions = ["Silent", "Error", "Warn", "Info", "Debug", "Trace"];
if (validOptions.indexOf(this.uriParams.logging) > -1) {
this.manager.options.logLevelChange(this.uriParams.logging);
} else {
log.warn(`Invalid logging level: ${this.uriParams.logging}`);
}
}
this.autoBakePause = false;
window.dispatchEvent(this.manager.statechange);
}