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

Commit c5cc75b

Browse files
authored
fix(logger): Set the log level based on the config at startup. (#3523)
Fixes #3522. Also fix the mocha spec to stop yelling at us about ES6 arrow functions.
1 parent c7fff5e commit c5cc75b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/launcher.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ let initFn = function(configFile: string, additionalConfig: Config) {
106106
configParser.addConfig(additionalConfig);
107107
}
108108
let config = configParser.getConfig();
109-
109+
Logger.set(config);
110110
logger.debug('Running with --troubleshoot');
111111
logger.debug('Protractor version: ' + require('../package.json').version);
112112
logger.debug('Your base url for tests is ' + config.baseUrl);

spec/mocha/lib_spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ describe('protractor library', function() {
3939
var finished = false;
4040

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

4545
after('verify mocha waited', function() {

0 commit comments

Comments
 (0)