diff --git a/lib/configuration/client_configuration.js b/lib/configuration/client_configuration.js index 2286cafef..b590aa112 100644 --- a/lib/configuration/client_configuration.js +++ b/lib/configuration/client_configuration.js @@ -4,6 +4,7 @@ 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({ @@ -76,6 +77,7 @@ 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 449ac465e..2148d7930 100644 --- a/test/integration/testEasyLoggingOnConnecting.js +++ b/test/integration/testEasyLoggingOnConnecting.js @@ -12,6 +12,7 @@ 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 () { @@ -32,7 +33,9 @@ describe('Easy logging tests', function () { resetEasyLoggingModule(); }); - it('Should apply easy logging config when connection is being opened with callback', function (done) { + it.only('Should apply easy logging config when connection is being opened with callback', function (done) { + // Logger.getInstance().configure({level: 'TRACE'}); + configureLogger('TRACE'); const logLevel = 'ERROR'; createConfigFile(logLevel).then((configFilePath) => { const configParameters = createConfigParameters(configFilePath);