Skip to content

Commit

Permalink
Update log message format
Browse files Browse the repository at this point in the history
  • Loading branch information
schipiga committed Nov 13, 2018
1 parent 9d31d1b commit 2d76d59
Show file tree
Hide file tree
Showing 3 changed files with 228 additions and 557 deletions.
9 changes: 4 additions & 5 deletions lib/steps/browser.js
Expand Up @@ -7,6 +7,7 @@

var fs = require("fs");
var path = require("path");
const util = require("util");

var _ = require("lodash");
var fp = require("lodash/fp");
Expand Down Expand Up @@ -130,8 +131,7 @@ var BrowserSteps = {
await new Promise((resolve, reject) => {

this._seleniumProc.on("exit", (code, signal) => {
LOG.debug("Selenium server was stopped with",
`code ${code} and signal ${signal}`);
LOG.debug(`Selenium server was stopped with code ${code} and signal ${signal}`);
delete this._seleniumProc;
resolve();
});
Expand Down Expand Up @@ -298,7 +298,7 @@ var BrowserSteps = {
try {
await this.webdriver.timeouts("page load", pageLoad);
} catch (e) {
LOG.error("Can't set webdriver timeouts", e);
LOG.error(util.format("Can't set webdriver timeouts", e));
await this.webdriver.timeouts({ pageLoad: pageLoad });
}
},
Expand Down Expand Up @@ -537,8 +537,7 @@ var BrowserSteps = {

await this.webdriver.waitUntil(async () => {
var curUrl = await this.webdriver.getUrl();
LOG.debug(`Compare current URL "${curUrl}"`,
`with expected "${webUrl}"`);
LOG.debug(`Compare current URL "${curUrl}" with expected "${webUrl}"`);
return curUrl.startsWith(webUrl);
}, timeout, errMsg);
};
Expand Down

0 comments on commit 2d76d59

Please sign in to comment.