Skip to content

Node.js based forum software built for the modern web

refactor: don't log both messages

Barış Soner Uşaklı564185df5d1b
diff --git a/src/activitypub/helpers.js b/src/activitypub/helpers.js
index eeada2d718..11ab4cc6d2 100644
--- a/src/activitypub/helpers.js
+++ b/src/activitypub/helpers.js
@@ -51,7 +51,6 @@ Helpers.log = (message) => {
}
_lastLog = message;
if (process.env.NODE_ENV === 'development') {
-
winston.verbose(message);
}
};
diff --git a/src/middleware/activitypub.js b/src/middleware/activitypub.js
index f237891336..92732a894c 100644
--- a/src/middleware/activitypub.js
+++ b/src/middleware/activitypub.js
@@ -60,9 +60,9 @@ middleware.verify = async function (req, res, next) {
}
activitypub.helpers.log('[middleware/activitypub] HTTP signature verification passed.');
+ } else {
+ activitypub.helpers.log('[middleware/activitypub] HTTP signature verification skipped.');
}
-
- activitypub.helpers.log('[middleware/activitypub] HTTP signature verification skipped.');
next();
};