Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

fix(logger): Set the log level based on the config at startup #3523

Merged
merged 1 commit into from
Sep 7, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/launcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ let initFn = function(configFile: string, additionalConfig: Config) {
configParser.addConfig(additionalConfig);
}
let config = configParser.getConfig();

Logger.set(config);
logger.debug('Running with --troubleshoot');
logger.debug('Protractor version: ' + require('../package.json').version);
logger.debug('Your base url for tests is ' + config.baseUrl);
Expand Down
2 changes: 1 addition & 1 deletion spec/mocha/lib_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ describe('protractor library', function() {
var finished = false;

it('should wait for async operations to finish', function() {
browser.get('index.html').then(() => { finished = true });
browser.get('index.html').then(function() { finished = true; });
});

after('verify mocha waited', function() {
Expand Down