From 85205c922522552e66b855c85285acf8cb4edea4 Mon Sep 17 00:00:00 2001 From: Hiddify Date: Wed, 6 Mar 2024 15:00:43 +0100 Subject: [PATCH] simple debug to bug of some windows --- lib/bootstrap.dart | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/lib/bootstrap.dart b/lib/bootstrap.dart index f3d806a0..ff0f7a63 100644 --- a/lib/bootstrap.dart +++ b/lib/bootstrap.dart @@ -138,7 +138,12 @@ Future lazyBootstrap( () => container.read(singboxServiceProvider).init(), ); Logger.bootstrap.info("Starting Active Profile"); - await _safeInit( + // await _safeInit( + // "active profile", + // () => container.read(activeProfileProvider.future), + // timeout: 1000, + // ); + await _init( "active profile", () => container.read(activeProfileProvider.future), timeout: 1000, @@ -196,8 +201,8 @@ Future _init( : initializer(); try { final result = await func(); - Logger.bootstrap - .debug("[$name] initialized in ${stopWatch.elapsedMilliseconds}ms"); + Logger.bootstrap.debug( + "[$name] initialized in ${stopWatch.elapsedMilliseconds}ms ${result}"); return result; } catch (e, stackTrace) { Logger.bootstrap.error("[$name] error initializing", e, stackTrace);