From a40c78d85db9193ebd79e86ccfc5bce6021f72f1 Mon Sep 17 00:00:00 2001 From: Hornwitser Date: Thu, 27 Aug 2020 11:27:32 +0200 Subject: [PATCH] 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. --- slave.js | 4 ++-- test/slave.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/slave.js b/slave.js index 0ce609ec..062cecff 100644 --- a/slave.js +++ b/slave.js @@ -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`); } } } diff --git a/test/slave.js b/test/slave.js index 159d310a..24749e2a 100644 --- a/test/slave.js +++ b/test/slave.js @@ -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() { }, };