8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c97b669 commit af39b70Copy full SHA for af39b70
client-src/utils/log.js
@@ -19,15 +19,16 @@ setLogLevel(defaultLevel);
19
const log = logger.getLogger(name);
20
21
const logEnabledFeatures = (features) => {
22
- const enabledFeatures = Object.entries(features);
+ const enabledFeatures = Object.keys(features);
23
if (!features || enabledFeatures.length === 0) {
24
return;
25
}
26
27
let logString = "Server started:";
28
29
// Server started: Hot Module Replacement enabled, Live Reloading enabled, Overlay disabled.
30
- for (const key of Object.keys(features)) {
+ for (let i = 0; i < enabledFeatures.length; i++) {
31
+ const key = enabledFeatures[i];
32
logString += ` ${key} ${features[key] ? "enabled" : "disabled"},`;
33
34
// replace last comma with a period
0 commit comments