-
-
Notifications
You must be signed in to change notification settings - Fork 248
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
Reduce the amount of debug logs #2752
Comments
related: getsentry/sentry-cocoa#4467, cocoa plans to set it to warning we could also adopt that here |
isn't that what the |
I agree. I believe that part is @smeubank's edit so maybe he'd like to clarify. |
I think the default experience should be less. Replay and android logs, both seem to be contributing too much in an erroneous way, whcih should be fixed, But overall the default debug experience of SDKs is way too verbose in my opinion. cc @cleptric for thought across SDKs, but using diagnosticLevel or --verbose type flags should only be in special scenarios where you need SOO much info. Rarely is logging the whole JSONs really useful for anyone for example. That should not be included in simply |
The trend we've seen is actually quite the opposite. People manually instrument something, it does not work, our debug logs don't help. So I'm actually more inclined to be as verbose as possible. On certain platforms, merging your app's stdout with all the Sentry SDK logs can be a PITA though. I have no good solution besides offering a dedicated log stream. |
Because for me the debug logs on most SDKs i use don;t help. I want to understand what the SDK is doing on a high level at first. THEN get into verbose details only maybe later. I still stand by loggin JSON event bodies as being way too much 90% of the time. |
Yes, this is overkill. |
Problem Statement
When I am running my flutter app locally
flutter run
, the Sentry SDK emits logs as well since it is defaultdebug: true
. This consumes everything in my console and make it impossible to catch other framework, libary, build, run time console logs related to errors when trying to run my app.Also when replay is present event setting
debug: false
, does nothing. This is it's own bug #2759Solution Brainstorm
There's a lot of logging happening in debug builds (with debug=true) for Replay. For example, the WidgetFilter logs a lot of info that was meant to be used during development but we don't actually need that most of the time. We should verify the logs are relevant and if not, remove them.
Alternatively, we could bump the default log level for when
options.debug
is true fromSentryLevel.debug
toSentryLevel.info
.Backstory
The text was updated successfully, but these errors were encountered: