From fef8cee5e5c8d0ee85ef278cd9e4a57cfcab56ff Mon Sep 17 00:00:00 2001 From: zodern Date: Thu, 10 Aug 2023 17:10:34 -0500 Subject: [PATCH] Fix only logging payload size when enabled --- lib/kadira.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/kadira.js b/lib/kadira.js index a2f8c285..00067fe8 100644 --- a/lib/kadira.js +++ b/lib/kadira.js @@ -284,7 +284,7 @@ Kadira._sendPayload = function () { new Fibers(function () { let payload = Kadira._buildPayload(); - if (!DEBUG_PAYLOAD_SIZE) { + if (DEBUG_PAYLOAD_SIZE) { logPayload(payload); }