mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 11:50:00 +00:00
fix logger.js after jest changes
This commit is contained in:
parent
9269848f66
commit
1ba67506a0
@ -36,8 +36,8 @@
|
||||
};
|
||||
|
||||
// the timeStamp instruction fails when running the tests so it is not added in test environment
|
||||
if (process.env.NODE_ENV.trim() !== "test") {
|
||||
logLevel.push({ timeStamp: Function.prototype.bind.call(console.timeStamp, console) });
|
||||
if (typeof process === "object" && process.env.NODE_ENV.trim() !== "test") {
|
||||
logLevel = Object.assign(logLevel, { timeStamp: Function.prototype.bind.call(console.timeStamp, console) });
|
||||
}
|
||||
|
||||
logLevel.setLogLevel = function (newLevel) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user