Fix function name for logger warning

This commit is contained in:
Basti 2019-04-05 16:03:48 +02:00
parent d854b4e0fb
commit 7056772066
No known key found for this signature in database
GPG Key ID: BE4634D632D39B67

View File

@ -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;