Use robot logger

This commit is contained in:
2019-03-13 12:21:48 +07:00
parent 3ac2774c4f
commit bfaf26cc9a

View File

@@ -145,7 +145,7 @@ module.exports = async function(robot, kredits) {
let proposalPromises = [];
recipients.forEach(recipient => {
console.debug(`[hubot-kredits] Creating proposal for ${recipient}...`);
robot.logger.debug(`[hubot-kredits] Creating proposal for ${recipient}...`);
proposalPromises.push(
createProposal(recipient, amount, description, web_url, pull_request)
.catch(err => robot.logger.error(err))