From 541b097950c41136b00875b13951a02cf0da0e70 Mon Sep 17 00:00:00 2001 From: cjihrig Date: Fri, 8 Mar 2019 10:28:35 -0500 Subject: [PATCH] report: fix stdout/stderr output formatting This commit prevents the report and "report complete" message from being printed on the same line. PR-URL: https://github.com/nodejs/node/pull/26522 Reviewed-By: Anna Henningsen Reviewed-By: Richard Lau Reviewed-By: James M Snell --- src/node_report.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/node_report.cc b/src/node_report.cc index 9d676b2d7ad4dc..5cbfd27d7694c4 100644 --- a/src/node_report.cc +++ b/src/node_report.cc @@ -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, @@ -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; }