From 175156e0a20008c8568481cf4890feb9915c14d9 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 15 May 2024 04:44:22 +0000 Subject: webhook err log --- lib/webhooks.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/webhooks.js b/lib/webhooks.js index 5d9113d0..5aed9287 100644 --- a/lib/webhooks.js +++ b/lib/webhooks.js @@ -1,6 +1,6 @@ import config from "$config"; import got from "got"; -import { l } from "$lib/logging"; +import { l, err } from "$lib/logging"; export const callWebhook = async (invoice, payment) => { try { @@ -27,6 +27,6 @@ export const callWebhook = async (invoice, payment) => { return res; } } catch (e) { - console.log("problem calling webhook", e); + err("problem calling webhook", e.message); } }; -- cgit v1.2.3