mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-18 06:13:42 +00:00
feat: add logger
This commit is contained in:
1 parent
5073ae6166
commit
b0a7a5569a
9 files changed
+32
-9
No files matched your search
@@ -5,13 +5,18 @@ import 'core/libgopeed_boot.dart';
|
||||
import 'routes/router.dart';
|
||||
import 'setting/setting.dart';
|
||||
import 'theme/theme.dart';
|
||||
import 'util/log_util.dart';
|
||||
import 'util/mac_secure_util.dart';
|
||||
|
||||
void main() async {
|
||||
WidgetsFlutterBinding.ensureInitialized();
|
||||
|
||||
await LibgopeedBoot.instance.start();
|
||||
await Setting.instance.load();
|
||||
try {
|
||||
await LibgopeedBoot.instance.start();
|
||||
await Setting.instance.load();
|
||||
} catch (e) {
|
||||
logger.e("init fail", e);
|
||||
}
|
||||
MacSecureUtil.loadBookmark();
|
||||
|
||||
runApp(GetMaterialApp.router(
|
||||
@@ -21,4 +26,4 @@ void main() async {
|
||||
themeMode: Setting.instance.themeMode,
|
||||
getPages: Routes.routes,
|
||||
));
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user