Browse Source

deps: do not add extra newline in log file

The commit in v0.10 (431eb172f9) that
backported the original change
(https://codereview.chromium.org/806143002) did add an extra newline
because the logging facilities in v0.10's V8 do not add one.

When merging this commit in v0.12, V8's logging facilities now
automatically add the newline character, and the debug builds assert if
one is already present.
v0.12.2-release
Julien Gilli 10 years ago
parent
commit
a103712a62
  1. 2
      deps/v8/src/log-utils.cc

2
deps/v8/src/log-utils.cc

@ -54,7 +54,7 @@ void Log::Initialize(const char* log_file_name) {
if (output_handle_ != NULL) {
Log::MessageBuilder msg(this);
msg.Append("v8-version,%d,%d,%d,%d,%d\n", Version::GetMajor(),
msg.Append("v8-version,%d,%d,%d,%d,%d", Version::GetMajor(),
Version::GetMinor(), Version::GetBuild(), Version::GetPatch(),
Version::IsCandidate());
msg.WriteToLogFile();

Loading…
Cancel
Save