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 <anna@addaleax.net>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • 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.