Skip to content

Commit

Permalink
🐛 fix memory leak
Browse files Browse the repository at this point in the history
Assuming there is no significance in having a unique logger for each call, this fixes CyberSource#141
  • Loading branch information
uPaymeiFixit committed May 31, 2024
1 parent 31baaba commit 9b64f1e
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/authentication/logging/Logger.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 9b64f1e

Please sign in to comment.