We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05209ba commit b2187caCopy full SHA for b2187ca
src/lighthouse.js
@@ -1,3 +1,6 @@
1
+// prevent logger from prefixing a date when running in tty
2
+process.env.DEBUG_COLORS = 'true';
3
+
4
const puppeteer = require('puppeteer');
5
const lighthouse = require('lighthouse');
6
const log = require('lighthouse-logger');
@@ -16,8 +19,6 @@ const getBrowserPath = async () => {
16
19
const runLighthouse = async (browserPath, url) => {
17
20
let chrome;
18
21
try {
- // prevent logger from prefixing a date when running in tty
- require('debug').inspectOpts.colors = true;
22
const logLevel = 'info';
23
log.setLevel(logLevel);
24
chrome = await chromeLauncher.launch({
0 commit comments