Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[QUESTION] No Logger output when the app is built in release mode #55

Open
adamszalma opened this issue Nov 12, 2021 · 0 comments
Open

Comments

@adamszalma
Copy link

Hi! I want to use the inbuilt Logger, with runZonedGuarded. When I build the app in debug mode and the error occurs, I can see the line TEST with the TEST tag on my AppSpector control center. However if I build the app in release mode, then I can't see that line, when the same error occurs. Any idea on this one?

runZonedGuarded(() async {
      await onInit();
      await onInjection();
      await onTypeAdapterRegistration();
      onAppSpectorInit(
        enable: EnvironmentConfiguration.enableAppSpector,
        sessionId: EnvironmentConfiguration.getSessionId(),
      );
      final Widget app = await onCreate();
      runApp(app);
    }, (error, stack) {
      Logger.e('TEST', 'TEST');
      print(error);
      print(stack);
    });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant