Index: src/log.cc |
diff --git a/src/log.cc b/src/log.cc |
index 0f0ad40398f358f01cf0f35c7f65691d768b2770..5c404bb9523036b5060bcd29df9ec5ef04a47b86 100644 |
--- a/src/log.cc |
+++ b/src/log.cc |
@@ -1765,15 +1765,14 @@ void Logger::LogAccessorCallbacks() { |
static void AddIsolateIdIfNeeded(Isolate* isolate, StringStream* stream) { |
- if (isolate->IsDefaultIsolate()) return; |
+ if (isolate->IsDefaultIsolate() || !FLAG_logfile_per_isolate) return; |
stream->Add("isolate-%p-", isolate); |
} |
static SmartArrayPointer<const char> PrepareLogFileName( |
Isolate* isolate, const char* file_name) { |
- if (strchr(file_name, '%') != NULL || |
- !isolate->IsDefaultIsolate()) { |
+ if (strchr(file_name, '%') != NULL || !isolate->IsDefaultIsolate()) { |
// If there's a '%' in the log file name we have to expand |
// placeholders. |
HeapStringAllocator allocator; |