diff --git a/runtime/vm/log.cc b/runtime/vm/log.cc index 809df77308a..70669b36477 100644 --- a/runtime/vm/log.cc +++ b/runtime/vm/log.cc @@ -161,8 +161,11 @@ intptr_t Log::cursor() const { bool Log::ShouldLogForIsolateGroup(const IsolateGroup* isolate_group) { if (FLAG_isolate_log_filter == nullptr) { + // By default, do not log for the service or kernel isolates. + if (isolate_group == Dart::vm_isolate_group()) { + return true; + } if (IsolateGroup::IsSystemIsolateGroup(isolate_group)) { - // By default, do not log for the service or kernel isolates. return false; } return true;