aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-05-15 04:44:22 +0000
committerAdam Soltys <[email protected]>2024-05-15 04:44:22 +0000
commit175156e0a20008c8568481cf4890feb9915c14d9 (patch)
tree85b24ba2ba49f5fed26658fd301e12f879dee99c
parent8777ac8bf4d07db11660675248b081bb82bcd326 (diff)
downloadcoinos-server-175156e0a20008c8568481cf4890feb9915c14d9.tar.gz
coinos-server-175156e0a20008c8568481cf4890feb9915c14d9.zip
webhook err log
-rw-r--r--lib/webhooks.js4
1 files changed, 2 insertions, 2 deletions
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);
}
};