summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Gilli <julien.gilli@joyent.com>2015-02-16 15:45:08 -0800
committerJulien Gilli <julien.gilli@joyent.com>2015-02-16 16:15:51 -0800
commita103712a625b9a9fd124250e864d497e9e9e95a4 (patch)
tree7ff07f170a896e339016035356bcbe515c4e77b0
parent2b095bb76c62d2e27f0fb9ca716f17198e925f62 (diff)
downloadnode-a103712a625b9a9fd124250e864d497e9e9e95a4.tar.gz
deps: do not add extra newline in log file
The commit in v0.10 (431eb172f97434a3b0868a610bc14d8ff7d9efd9) 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.
-rw-r--r--deps/v8/src/log-utils.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/deps/v8/src/log-utils.cc b/deps/v8/src/log-utils.cc
index 748d23a0d..d3dbe143c 100644
--- a/deps/v8/src/log-utils.cc
+++ b/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();