Browse Source

Log errors with the stack trace

Vishnu Mohandas 4 years ago
parent
commit
959f6cd27e
1 changed files with 2 additions and 2 deletions
  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);
   });
 }