Index: src/log-utils.cc |
diff --git a/src/log-utils.cc b/src/log-utils.cc |
index 462f83f5345356a0502887b179fa154e63965375..970e7965f09718d6042b2f175526b78eeabc41d0 100644 |
--- a/src/log-utils.cc |
+++ b/src/log-utils.cc |
@@ -55,9 +55,16 @@ void Log::Initialize(const char* log_file_name) { |
if (output_handle_ != nullptr) { |
Log::MessageBuilder msg(this); |
- msg.Append("v8-version,%d,%d,%d,%d,%d", Version::GetMajor(), |
- Version::GetMinor(), Version::GetBuild(), Version::GetPatch(), |
- Version::IsCandidate()); |
+ if (strlen(Version::GetEmbedder()) == 0) { |
+ msg.Append("v8-version,%d,%d,%d,%d,%d", Version::GetMajor(), |
+ Version::GetMinor(), Version::GetBuild(), |
+ Version::GetPatch(), Version::IsCandidate()); |
+ } else { |
+ msg.Append("v8-version,%d,%d,%d,%d,%s,%d", Version::GetMajor(), |
+ Version::GetMinor(), Version::GetBuild(), |
+ Version::GetPatch(), Version::GetEmbedder(), |
+ Version::IsCandidate()); |
+ } |
msg.WriteToLogFile(); |
} |
} |