Use robot.logger

This commit is contained in:
2018-04-19 12:10:34 +02:00
parent 5259b56e53
commit 462efcefbd
2 changed files with 5 additions and 5 deletions

View File

@@ -44,7 +44,7 @@ module.exports = async function(robot) {
try {
wallet = await ethers.Wallet.fromEncryptedWallet(walletJson, process.env.KREDITS_WALLET_PASSWORD);
} catch(error) {
console.log('[hubot-kredits] Could not load wallet:', error);
robot.logger.warn('[hubot-kredits] Could not load wallet:', error);
process.exit(1);
}
@@ -64,7 +64,7 @@ module.exports = async function(robot) {
try {
kredits = await Kredits.setup(ethProvider, wallet, ipfsConfig);
} catch(error) {
console.log('[hubot-kredits] Could not set up kredits:', error);
robot.logger.warn('[hubot-kredits] Could not set up kredits:', error);
process.exit(1);
}
const Contributor = kredits.Contributor;