Use robot logger

This commit is contained in:
Basti 2019-03-13 12:21:48 +07:00
parent 3ac2774c4f
commit bfaf26cc9a
No known key found for this signature in database
GPG Key ID: BE4634D632D39B67

View File

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