Log errors with the stack trace

This commit is contained in:
Vishnu Mohandas 2020-10-13 02:04:34 +05:30
parent 107c1b870e
commit 959f6cd27e

View file

@ -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);
});
}