From 9b64f1e9ee3dd22bf3d1d693021f6fa157385d9c Mon Sep 17 00:00:00 2001 From: uPaymeiFixit Date: Thu, 30 May 2024 23:36:22 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix=20memory=20leak?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Assuming there is no significance in having a unique logger for each call, this fixes https://github.com/CyberSource/cybersource-rest-client-node/issues/141 --- src/authentication/logging/Logger.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/authentication/logging/Logger.js b/src/authentication/logging/Logger.js index 0b7679b9..55366224 100644 --- a/src/authentication/logging/Logger.js +++ b/src/authentication/logging/Logger.js @@ -23,9 +23,6 @@ exports.getLogger = function (merchantConfig, loggerCategory = 'UnknownCategoryL } var enableLog = merchantConfig.getLogConfiguration().isLogEnabled(); var enableMasking = merchantConfig.getLogConfiguration().isMaskingEnabled(); - var loggerCategoryRandomiser = Math.floor(Math.random() * (1000000000 - 100 + 1)) + 100; - - loggerCategory = loggerCategory + loggerCategoryRandomiser; var newLogger;