Chromium Code Reviews| Index: pkg/watcher/lib/src/directory_watcher/mac_os.dart |
| diff --git a/pkg/watcher/lib/src/directory_watcher/mac_os.dart b/pkg/watcher/lib/src/directory_watcher/mac_os.dart |
| index ba0ede4cb489101af78e2904d9626b3b751b1012..c180b66312d77ca94e810c082319b57ea4ef46bb 100644 |
| --- a/pkg/watcher/lib/src/directory_watcher/mac_os.dart |
| +++ b/pkg/watcher/lib/src/directory_watcher/mac_os.dart |
| @@ -109,7 +109,7 @@ class _MacOSDirectoryWatcher implements ManuallyClosedDirectoryWatcher { |
| void close() { |
| if (MacOSDirectoryWatcher.logDebugInfo) { |
| - print("[$_id] watcher is closed"); |
| + print("[$_id] watcher is closed\n${new Chain.current().terse}"); |
| } |
| if (_watchSubscription != null) _watchSubscription.cancel(); |
| if (_initialListSubscription != null) _initialListSubscription.cancel(); |
| @@ -468,6 +468,10 @@ class _MacOSDirectoryWatcher implements ManuallyClosedDirectoryWatcher { |
| /// Emit an error, then close the watcher. |
| void _emitError(error, StackTrace stackTrace) { |
| + if (MacOSDirectoryWatcher.logDebugInfo) { |
| + print("[$_id] emitting error: $error\n" + |
| + new Chain.forTrace(stackTrace).terse.toString()); |
|
Bob Nystrom
2014/01/29 17:09:53
Nit, but I'd prefer this be consistent with the ab
nweiz
2014/01/29 21:06:41
Done.
|
| + } |
| _eventsController.addError(error, stackTrace); |
| close(); |
| } |