mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-22 00:13:12 +09:00
Fix logger.warning is not a function
Replace logger.warning with logger.warn as I incorrectly assumed the warning method of console was called console.warning instead of console.warn.
This commit is contained in:
1 parent
0b790357f9
commit
a40c78d85d
2 files changed
+3
-3
No files matched your search
@@ -1188,11 +1188,11 @@ async function symlinkMods(instance, sharedMods, logger) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
logger.warning(`Warning: ignoring file '${entry.name}' in sharedMods`);
|
logger.warn(`Warning: ignoring file '${entry.name}' in sharedMods`);
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
logger.warning(`Warning: ignoring non-file '${entry.name}' in sharedMods`);
|
logger.warn(`Warning: ignoring non-file '${entry.name}' in sharedMods`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -92,7 +92,7 @@ describe("Slave testing", function() {
|
|||||||
describe("symlinkMods()", function() {
|
describe("symlinkMods()", function() {
|
||||||
let testDir = path.join("temp", "test", "symlink");
|
let testDir = path.join("temp", "test", "symlink");
|
||||||
let discardingLogger = {
|
let discardingLogger = {
|
||||||
warning: function() { },
|
warn: function() { },
|
||||||
log: function() { },
|
log: function() { },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user