mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-28 04:02:12 +00:00
commit
73322c96a6
@ -21,6 +21,7 @@ _This release is scheduled to be released on 2020-10-01._
|
|||||||
|
|
||||||
- Fix the use of "maxNumberOfDays" in the module "weatherforecast depending on the endpoint (forecast/daily or forecast)". [#2018](https://github.com/MichMich/MagicMirror/issues/2018)
|
- Fix the use of "maxNumberOfDays" in the module "weatherforecast depending on the endpoint (forecast/daily or forecast)". [#2018](https://github.com/MichMich/MagicMirror/issues/2018)
|
||||||
- Fix calendar display. Account for current timezone. [#2068](https://github.com/MichMich/MagicMirror/issues/2068)
|
- Fix calendar display. Account for current timezone. [#2068](https://github.com/MichMich/MagicMirror/issues/2068)
|
||||||
|
- Fix logLevel being set before loading config
|
||||||
|
|
||||||
## [2.12.0] - 2020-07-01
|
## [2.12.0] - 2020-07-01
|
||||||
|
|
||||||
|
@ -202,6 +202,8 @@ var App = function () {
|
|||||||
loadConfig(function (c) {
|
loadConfig(function (c) {
|
||||||
config = c;
|
config = c;
|
||||||
|
|
||||||
|
Log.setLogLevel(config.logLevel);
|
||||||
|
|
||||||
var modules = [];
|
var modules = [];
|
||||||
|
|
||||||
for (var m in config.modules) {
|
for (var m in config.modules) {
|
||||||
|
@ -32,13 +32,15 @@
|
|||||||
timeStamp: Function.prototype.bind.call(console.timeStamp, console)
|
timeStamp: Function.prototype.bind.call(console.timeStamp, console)
|
||||||
};
|
};
|
||||||
|
|
||||||
if (config && config.logLevel) {
|
logLevel.setLogLevel = function (newLevel) {
|
||||||
|
if (newLevel) {
|
||||||
Object.keys(logLevel).forEach(function (key, index) {
|
Object.keys(logLevel).forEach(function (key, index) {
|
||||||
if (!config.logLevel.includes(key.toLocaleUpperCase())) {
|
if (!newLevel.includes(key.toLocaleUpperCase())) {
|
||||||
logLevel[key] = function () {};
|
logLevel[key] = function () {};
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
};
|
||||||
|
|
||||||
return logLevel;
|
return logLevel;
|
||||||
});
|
});
|
||||||
|
@ -477,6 +477,9 @@ var MM = (function () {
|
|||||||
init: function () {
|
init: function () {
|
||||||
Log.info("Initializing MagicMirror.");
|
Log.info("Initializing MagicMirror.");
|
||||||
loadConfig();
|
loadConfig();
|
||||||
|
|
||||||
|
Log.setLogLevel(config.logLevel);
|
||||||
|
|
||||||
Translator.loadCoreTranslations(config.language);
|
Translator.loadCoreTranslations(config.language);
|
||||||
Loader.loadModules();
|
Loader.loadModules();
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user