Skip to content

Commit

Permalink
Revert "more logging"
Browse files Browse the repository at this point in the history
This reverts commit 8a9c768.
  • Loading branch information
paulirish committed May 28, 2022
1 parent 8a9c768 commit 4728b80
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions src/chrome-launcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
'use strict';

import * as childProcess from 'child_process';
import * as readline from 'readline';
import * as fs from 'fs';
import * as net from 'net';
import * as chromeFinder from './chrome-finder';
Expand Down Expand Up @@ -296,18 +295,7 @@ class Launcher {
'ChromeLauncher', `Launching with command:\n"${execPath}" ${this.flags.join(' ')}`);
const chrome = this.spawn(
execPath, this.flags,
{detached: true, stdio: ['ignore', 'pipe', 'pipe', 'pipe', 'pipe'], env: this.envVars});


const stdout = readline.createInterface({ input: chrome.stdout! });
stdout.on('line', (data: string) => {
console.log(`CL[pid=${chrome.pid}][out] ` + data);
});

const stderr = readline.createInterface({ input: chrome.stderr! });
stderr.on('line', (data: string) => {
console.log(`CL[pid=${chrome.pid}][err] ` + data);
});
{detached: true, stdio: ['ignore', this.outFile, this.errFile], env: this.envVars});
this.chrome = chrome;


Expand Down

0 comments on commit 4728b80

Please sign in to comment.