From 40257663a85d44ed5b3d88f25aeb7ff5d6365856 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Wed, 25 Dec 2024 09:00:12 -0500 Subject: [PATCH] refactor: use helpers.log --- src/activitypub/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/activitypub/index.js b/src/activitypub/index.js index f57a39e322..81ade2c8b4 100644 --- a/src/activitypub/index.js +++ b/src/activitypub/index.js @@ -339,7 +339,7 @@ async function sendMessage(uri, id, type, payload, attempts = 1) { throw new Error(String(body)); } } catch (e) { - winston.warn(`[activitypub/send] Could not send ${payload.type} to ${uri}; error: ${e.message}`); + ActivityPub.helpers.log(`[activitypub/send] Could not send ${payload.type} to ${uri}; error: ${e.message}`); // add to retry queue if (attempts < 12) { // stop attempting after ~2 months const timeout = (4 ** attempts) * 1000; // exponential backoff