8000 [rush] Fix empty error logs (#4997) · atingmicrosoft/rushstack@d83665c · GitHub
[go: up one dir, main page]

Skip to content

Commit d83665c

Browse files
authored
[rush] Fix empty error logs (microsoft#4997)
Co-authored-by: David Michon <dmichon-msft@users.noreply.github.com>
1 parent a4e9c24 commit d83665c

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"changes": [
3+
{
4+
"packageName": "@microsoft/rush",
5+
"comment": "Fix an issue where empty error logs were created for operations that did not write to standard error.",
6+
"type": "none"
7+
}
8+
],
9+
"packageName": "@microsoft/rush"
10+
}

libraries/rush-lib/src/logic/operations/ProjectLogWritable.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ export class SplitLogFileWritable extends TerminalWritable {
148148
this.errorLogPath = errorLogPath;
149149

150150
this._logWriter = FileWriter.open(logPath);
151-
this._errorLogWriter = FileWriter.open(errorLogPath);
151+
this._errorLogWriter = undefined;
152152
}
153153

154154
// Override writeChunk function to throw custom error

0 commit comments

Comments
 (0)
0