Use logger instead of console.log

This commit is contained in:
TAG-Epic
2020-08-23 20:05:11 +02:00
parent 2ffed72977
commit 77d08d2340

View File

@@ -223,7 +223,7 @@ async function voteOnSponsorTime(req, res) {
let isUpvote = incrementAmount > 0 let isUpvote = incrementAmount > 0
// Send custom webhooks // Send custom webhooks
if (config.webhooks.size !== 0) { if (config.webhooks.size !== 0) {
console.log("Dispatching webhooks"); logger.debug("Dispatching webhooks");
config.webhooks.forEach(customWebhook => { config.webhooks.forEach(customWebhook => {
let customWebhookURL = customWebhook.url; let customWebhookURL = customWebhook.url;
let scopes = customWebhook.scopes; let scopes = customWebhook.scopes;