From c4e6edb94bf608092d3d79289dfc0f97bb24f13b Mon Sep 17 00:00:00 2001 From: David Szmolka <69192509+sfc-gh-dszmolka@users.noreply.github.com> Date: Wed, 13 Nov 2024 11:56:53 +0100 Subject: [PATCH] SNOW-1800528 don't log anything if logLevel is set to `OFF` (#958) --- lib/core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core.js b/lib/core.js index c360d1637..47f50e969 100644 --- a/lib/core.js +++ b/lib/core.js @@ -187,13 +187,13 @@ function Core(options) { const additionalLogToConsole = options.additionalLogToConsole; if (logLevel != null || logFilePath) { - Logger.getInstance().info('Configuring logger with level: %s, filePath: %s, additionalLogToConsole: %s', logLevel, logFilePath, additionalLogToConsole); Logger.getInstance().configure( { level: logLevel, filePath: logFilePath, additionalLogToConsole: additionalLogToConsole }); + Logger.getInstance().info('Configuring logger with level: %s, filePath: %s, additionalLogToConsole: %s', logLevel, logFilePath, additionalLogToConsole); } const insecureConnect = options.insecureConnect;