Standardize on camelCase in Logging

This commit is contained in:
Samuel Mannehed
2020-05-31 23:24:58 +02:00
committed by Lauri Kasanen
parent 472ede66ea
commit a3e2b1e46e
4 changed files with 18 additions and 18 deletions

View File

@@ -2001,7 +2001,7 @@ const UI = {
},
updateLogging() {
WebUtil.init_logging(UI.getSetting('logging'));
WebUtil.initLogging(UI.getSetting('logging'));
},
updateDesktopName(e) {

View File

@@ -6,16 +6,16 @@
* See README.md for usage and integration instructions.
*/
import { init_logging as main_init_logging } from '../core/util/logging.js';
import { initLogging as mainInitLogging } from '../core/util/logging.js';
// init log level reading the logging HTTP param
export function init_logging(level) {
export function initLogging(level) {
"use strict";
if (typeof level !== "undefined") {
main_init_logging(level);
mainInitLogging(level);
} else {
const param = document.location.href.match(/logging=([A-Za-z0-9._-]*)/);
main_init_logging(param || undefined);
mainInitLogging(param || undefined);
}
}