Skip to content

Commit

Permalink
change Launcher logging priorities
Browse files Browse the repository at this point in the history
  • Loading branch information
brendankenny committed Oct 13, 2016
1 parent e4cf83b commit 5d56ca7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lighthouse-cli/chrome-launcher.js
Expand Up @@ -78,7 +78,7 @@ module.exports = class Launcher {
// you can't pass a fd to fs.writeFileSync
this.pidFile = `${this.TMP_PROFILE_DIR}/chrome.pid`;

log.log('ChromeLauncher', `created ${this.TMP_PROFILE_DIR}`);
log.verbose('ChromeLauncher', `created ${this.TMP_PROFILE_DIR}`);

this.prepared = true;
}
Expand Down Expand Up @@ -117,7 +117,7 @@ module.exports = class Launcher {

fs.writeFileSync(this.pidFile, chrome.pid.toString());

log.log('ChromeLauncher', 'Chrome running with pid =', chrome.pid);
log.verbose('ChromeLauncher', 'Chrome running with pid =', chrome.pid);
resolve(chrome.pid);
})
.then(pid => Promise.all([pid, this.waitUntilReady()]));
Expand Down Expand Up @@ -163,12 +163,12 @@ module.exports = class Launcher {
}
retries++;
waitStatus += '..';
log.verbose('ChromeLauncher', waitStatus);
log.log('ChromeLauncher', waitStatus);

launcher
.isDebuggerReady()
.then(() => {
log.verbose('ChromeLauncher', waitStatus + `${green}${reset}`);
log.log('ChromeLauncher', waitStatus + `${green}${reset}`);
resolve();
})
.catch(err => {
Expand Down Expand Up @@ -204,7 +204,7 @@ module.exports = class Launcher {

destroyTmp() {
if (this.TMP_PROFILE_DIR) {
log.log('ChromeLauncher', `Removing ${this.TMP_PROFILE_DIR}`);
log.verbose('ChromeLauncher', `Removing ${this.TMP_PROFILE_DIR}`);
rimraf.sync(this.TMP_PROFILE_DIR);
}
}
Expand Down

0 comments on commit 5d56ca7

Please sign in to comment.