소스 검색

Log errors with the stack trace

Vishnu Mohandas 4 년 전
부모
커밋
959f6cd27e
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      lib/main.dart

+ 2 - 2
lib/main.dart

@@ -50,8 +50,8 @@ void _main() async {
 }
 
 void _sync() async {
-  SyncService.instance.sync().catchError((e) {
-    _logger.warning(e);
+  SyncService.instance.sync().catchError((e, s) {
+    _logger.severe("Sync error", e, s);
   });
 }