-
-
Notifications
You must be signed in to change notification settings - Fork 32
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
Appending text with the SentryFileWriter not possible #387
Comments
Hey thanks for the report and the details, we'll take a look 👍 |
This is indeed a very nasty bug 🙈 sorry for the troubles caused. The fix is on its way, and we'll release a new version of the gradle plugin to fix the auto-instrumentation as well. Thanks for the comprehensive report! |
hey @Melle010 we've released version 3.2.1 of the gradle plugin, which bumps sentry-android to 6.6.0 (where the actual fix is), please try it out and let us know if you still have issues. Thanks! |
Hi @romtsn, thank you for the fix. Yes, with gradle plugin version 3.2.1 and sentry-android version 6.6.0 the file writer works again as expected. |
Gradle Version
7.3
AGP Version
7.0.3
Code Minifier/Optimizer
Proguard
Version
3.1.5
Sentry SDK Version
6.4.2
Steps to Reproduce
Appending a text to an existing text file overwrites the previous line. As a result, our log files always consist of only one (the most recent) log message. While debugging I noticed that
SentryFileWriter
is used instead of Java'sFileWriter
:You can test it with the following code:
Expected Result
A text file with the following content:
Actual Result
A text file with the following content:
2022-10-13.txt
The text was updated successfully, but these errors were encountered: