Index: src/log-inl.h |
diff --git a/src/log-inl.h b/src/log-inl.h |
index 22ea800585c326866cc8dc1efab35b7c19966d2a..a96631d059d1a5dd0dffb7d3ebd9ec9d2cd64584 100644 |
--- a/src/log-inl.h |
+++ b/src/log-inl.h |
@@ -29,10 +29,12 @@ Logger::LogEventsAndTags Logger::ToNativeByScript(Logger::LogEventsAndTags tag, |
void Logger::CallEventLogger(Isolate* isolate, const char* name, StartEnd se, |
bool expose_to_api) { |
- if (isolate->event_logger() == NULL) { |
- if (FLAG_log_internal_timer_events) LOG(isolate, TimerEvent(se, name)); |
- } else if (expose_to_api) { |
- isolate->event_logger()(name, se); |
+ if (isolate->event_logger() != NULL) { |
+ if (isolate->event_logger() == DefaultEventLoggerSentinel) { |
+ LOG(isolate, TimerEvent(se, name)); |
+ } else if (expose_to_api) { |
+ isolate->event_logger()(name, se); |
+ } |
} |
} |
} } // namespace v8::internal |