Index: runtime/observatory/lib/src/app/application.dart |
diff --git a/runtime/observatory/lib/src/app/application.dart b/runtime/observatory/lib/src/app/application.dart |
index ef74096fb64be8e836795d833d03ae55a61d0de0..14c6d29e3bb637c10c361b10a79b41b21a214c47 100644 |
--- a/runtime/observatory/lib/src/app/application.dart |
+++ b/runtime/observatory/lib/src/app/application.dart |
@@ -53,7 +53,8 @@ class ObservatoryApplication extends Observable { |
new ServiceEvent.connectionClosed(reason))); |
}); |
- vm.events.stream.listen(_onEvent); |
+ vm.isolateEvents.listen(_onEvent); |
+ vm.debugEvents.listen(_onEvent); |
} |
_vm = vm; |
} |
@@ -88,11 +89,9 @@ class ObservatoryApplication extends Observable { |
switch(event.eventType) { |
case ServiceEvent.kIsolateStart: |
case ServiceEvent.kIsolateUpdate: |
- case ServiceEvent.kGraph: |
case ServiceEvent.kBreakpointAdded: |
case ServiceEvent.kBreakpointResolved: |
case ServiceEvent.kBreakpointRemoved: |
- case ServiceEvent.kGC: |
// Ignore for now. |
break; |
@@ -116,7 +115,7 @@ class ObservatoryApplication extends Observable { |
default: |
// Ignore unrecognized events. |
- Logger.root.severe('Unrecognized event: $event'); |
+ Logger.root.severe('Ignoring unexpected event: $event'); |
break; |
} |
} |