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

Commit

Permalink
fix(logger): Set the log level based on the config at startup. (#3523)
Browse files Browse the repository at this point in the history
Fixes #3522. Also fix the mocha spec to stop yelling at us about ES6
arrow functions.
  • Loading branch information
heathkit committed Sep 7, 2016
1 parent c7fff5e commit c5cc75b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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

0 comments on commit c5cc75b

Please sign in to comment.