Skip to content

Commit

Permalink
what if I disable stdout/stderr?
Browse files Browse the repository at this point in the history
  • Loading branch information
tianfeng92 committed Aug 6, 2024
1 parent ae0e6a6 commit 8ee1b4f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/playwright-recorder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const escapeSequenceRegex = new RegExp(

export function playwrightRecorder() {
// console.log is saved out of reportsDir since it is cleared on startup.
const ws = fs.createWriteStream(path.join(process.cwd(), 'console2.log'), {
const ws = fs.createWriteStream(path.join(process.cwd(), 'console.log'), {
flags: 'w+',
mode: 0o644,
});
Expand All @@ -29,10 +29,10 @@ export function playwrightRecorder() {
...process.argv.slice(2),
]);

child.stdout.pipe(stripAsciiTransform).pipe(process.stdout);
child.stderr.pipe(process.stderr);
//child.stdout.pipe(ws);
//child.stderr.pipe(ws);
//child.stdout.pipe(stripAsciiTransform).pipe(process.stdout);
//child.stderr.pipe(process.stderr);
child.stdout.pipe(stripAsciiTransform).pipe(ws);
child.stderr.pipe(ws);

child.on('exit', (exitCode) => {
ws.end();
Expand Down

0 comments on commit 8ee1b4f

Please sign in to comment.