Skip to content

Commit 9b64f1e

Browse files
committed
🐛 fix memory leak
Assuming there is no significance in having a unique logger for each call, this fixes CyberSource#141
1 parent 31baaba commit 9b64f1e

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/authentication/logging/Logger.js

-3
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@ exports.getLogger = function (merchantConfig, loggerCategory = 'UnknownCategoryL
2323
}
2424
var enableLog = merchantConfig.getLogConfiguration().isLogEnabled();
2525
var enableMasking = merchantConfig.getLogConfiguration().isMaskingEnabled();
26-
var loggerCategoryRandomiser = Math.floor(Math.random() * (1000000000 - 100 + 1)) + 100;
27-
28-
loggerCategory = loggerCategory + loggerCategoryRandomiser;
2926

3027
var newLogger;
3128

0 commit comments

Comments
 (0)