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