From bc0de205b40163a2a1194002f0c6d77b824dd4ad Mon Sep 17 00:00:00 2001 From: Krzysztof Nozderko Date: Thu, 5 Oct 2023 18:01:39 +0200 Subject: [PATCH] Revert "debug windows error" This reverts commit e63cc0dda698c4b6acb9bb487311481fcf6e2976. --- lib/configuration/client_configuration.js | 2 -- test/integration/testEasyLoggingOnConnecting.js | 5 +---- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/configuration/client_configuration.js b/lib/configuration/client_configuration.js index b590aa112..2286cafef 100644 --- a/lib/configuration/client_configuration.js +++ b/lib/configuration/client_configuration.js @@ -4,7 +4,6 @@ const os = require('os'); const path = require('path'); const fs = require('fs'); -const Logger = require('../logger'); const clientConfigFileName = 'sf_client_config.json'; const Levels = Object.freeze({ @@ -77,7 +76,6 @@ function ConfigurationUtil(fsPromisesModule, processModule) { return null; } const configFileContents = await readFileConfig(path); - Logger.getInstance().debug('Config file content is->' + configFileContents + '<-end of content'); return configFileContents == null ? null : parseConfigFile(configFileContents); }; diff --git a/test/integration/testEasyLoggingOnConnecting.js b/test/integration/testEasyLoggingOnConnecting.js index 2148d7930..449ac465e 100644 --- a/test/integration/testEasyLoggingOnConnecting.js +++ b/test/integration/testEasyLoggingOnConnecting.js @@ -12,7 +12,6 @@ const assert = require('assert'); const logLevelBefore = Logger.getInstance().getLevel(); const {codes} = require('./../../lib/errors'); const errorMessages = require('./../../lib/constants/error_messages'); -const { configureLogger } = require('../configureLogger'); let tempDir = null; describe('Easy logging tests', function () { @@ -33,9 +32,7 @@ describe('Easy logging tests', function () { resetEasyLoggingModule(); }); - it.only('Should apply easy logging config when connection is being opened with callback', function (done) { - // Logger.getInstance().configure({level: 'TRACE'}); - configureLogger('TRACE'); + it('Should apply easy logging config when connection is being opened with callback', function (done) { const logLevel = 'ERROR'; createConfigFile(logLevel).then((configFilePath) => { const configParameters = createConfigParameters(configFilePath);