Nicer log messages

Co-Authored-By: Sebastian Kippe <sebastian@kip.pe>
This commit is contained in:
bumi 2020-04-16 12:08:06 +02:00 committed by GitHub
parent 110c4384e0
commit c4ef8de018
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -61,13 +61,13 @@ module.exports = async function(robot, kredits) {
const participants = await getMeetingParticipants(data.uuid);
if (meetingDetails.duration < 15 || meetingDetails.participants_count < 3) {
robot.logger.info(`[hubot-kredits] ignoring meeting: uuid:${data.uuid} duration:${meetingDetails.duration} participants_count:${meetingDetails.participants_count}`);
robot.logger.info(`[hubot-kredits] Ignoring zoom call ${data.uuid} (duration: ${meetingDetails.duration}, participants_count: ${meetingDetails.participants_count})`);
return;
}
participants.forEach(p => {
createContributionFor(p, meetingDetails)
.then(tx => {
robot.logger.info(`[hubot-kredits] contribution created: ${tx.hash}`);
robot.logger.info(`[hubot-kredits] Contribution created: ${tx.hash}`);
})
});
}