Index: src/compiler.cc |
diff --git a/src/compiler.cc b/src/compiler.cc |
index fb9d5cb948ac4036f4636c73343d933be90c5326..6153f3a44abc9b68b4d04b623b98789c0d79071c 100644 |
--- a/src/compiler.cc |
+++ b/src/compiler.cc |
@@ -1019,7 +1019,7 @@ void Compiler::RecordFunctionCompilation(Logger::LogEventsAndTags tag, |
// Log the code generation. If source information is available include |
// script name and line number. Check explicitly whether logging is |
// enabled as finding the line number is not free. |
- if (info->isolate()->logger()->is_logging() || |
+ if (info->isolate()->logger()->is_logging_code_events() || |
CpuProfiler::is_profiling(info->isolate())) { |
Handle<Script> script = info->script(); |
Handle<Code> code = info->code(); |