From 7056772066c52815f80f8ac49c0fda99f1900c33 Mon Sep 17 00:00:00 2001 From: Sebastian Kippe Date: Fri, 5 Apr 2019 16:03:48 +0200 Subject: [PATCH] Fix function name for logger warning --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index a2b536c..bdb1616 100644 --- a/index.js +++ b/index.js @@ -29,7 +29,7 @@ module.exports = async function(robot) { try { wallet = await ethers.Wallet.fromEncryptedJson(walletJson, process.env.KREDITS_WALLET_PASSWORD); } catch(error) { - robot.logger.warn('[hubot-kredits] Could not load wallet:', error); + robot.logger.warning('[hubot-kredits] Could not load wallet:', error); process.exit(1); } @@ -49,7 +49,7 @@ module.exports = async function(robot) { try { kredits = await new Kredits(ethProvider, wallet, ipfsConfig).init(); } catch(error) { - robot.logger.warn('[hubot-kredits] Could not set up kredits:', error); + robot.logger.warning('[hubot-kredits] Could not set up kredits:', error); process.exit(1); } const Contributor = kredits.Contributor;