Skip to content

Commit

Permalink
SNOW-1800528 don't log anything if logLevel is set to OFF (#958)
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-dszmolka authored Nov 13, 2024
1 parent f7d8b00 commit c4e6edb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c4e6edb

Please sign in to comment.