浏览代码

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 {
 void _sync() async {
-  SyncService.instance.sync().catchError((e) {
-    _logger.warning(e);
+  SyncService.instance.sync().catchError((e, s) {
+    _logger.severe("Sync error", e, s);
   });
   });
 }
 }