mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-15 15:24:52 +09:00
Merge pull request #311 from Hornwitser/fix-logger-warning
Fix logger.warning is not a function Fixes #303
This commit is contained in:
2 files changed
+3
-3
No files matched your search
@@ -1188,11 +1188,11 @@ async function symlinkMods(instance, sharedMods, logger) {
|
||||
}
|
||||
|
||||
} else {
|
||||
logger.warning(`Warning: ignoring file '${entry.name}' in sharedMods`);
|
||||
logger.warn(`Warning: ignoring file '${entry.name}' in sharedMods`);
|
||||
}
|
||||
|
||||
} 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() {
|
||||
let testDir = path.join("temp", "test", "symlink");
|
||||
let discardingLogger = {
|
||||
warning: function() { },
|
||||
warn: function() { },
|
||||
log: function() { },
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user