Skip to content

Commit

Permalink
report: fix stdout/stderr output formatting
Browse files Browse the repository at this point in the history
This commit prevents the report and "report complete" message
from being printed on the same line.

PR-URL: #26522
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Richard Lau <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
cjihrig authored and BridgeAR committed Mar 14, 2019
1 parent 414ad11 commit ac81fd2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/node_report.cc
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,7 @@ std::string TriggerNodeReport(Isolate* isolate,
return "";
}
outstream = &outfile;

std::cerr << std::endl
<< "Writing Node.js report to file: " << filename << std::endl;
std::cerr << std::endl << "Writing Node.js report to file: " << filename;
}

WriteNodeReport(isolate, env, message, trigger, filename, *outstream,
Expand All @@ -184,7 +182,7 @@ std::string TriggerNodeReport(Isolate* isolate,
outfile.close();
}

std::cerr << "Node.js report completed" << std::endl;
std::cerr << std::endl << "Node.js report completed" << std::endl;
return filename;
}

Expand Down

0 comments on commit ac81fd2

Please sign in to comment.