Skip to content

Commit

Permalink
debug windows error
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-knozderko committed Oct 5, 2023
1 parent fb051fc commit e63cc0d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions lib/configuration/client_configuration.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down Expand Up @@ -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);
};

Expand Down
5 changes: 4 additions & 1 deletion test/integration/testEasyLoggingOnConnecting.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand All @@ -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);
Expand Down

0 comments on commit e63cc0d

Please sign in to comment.