You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Version 5.7.1 works fine. It seems like the #1974 PR causes this. The args is passed incorrectly - missing asterisk.
Expected Result
A log message: test 1 1
Actual Result
Caused by: java.util.MissingFormatArgumentException: Format specifier '%s'
at java.util.Formatter.format(Formatter.java:2522)
at java.util.Formatter.format(Formatter.java:2458)
at java.lang.String.format(String.java:2842)
at timber.log.Timber$Tree.formatMessage(Timber.kt:172)
at timber.log.Timber$Tree.prepareLog(Timber.kt:161)
at timber.log.Timber$Tree.d(Timber.kt:51)
at io.sentry.android.timber.SentryTimberTree.d(SentryTimberTree.kt:60)
at timber.log.Timber$Forest.d(Timber.kt:292)
at timber.log.Timber.d(Unknown Source:2)
at the.app.MainActivity.onCreate(MainActivity.java:109)
The text was updated successfully, but these errors were encountered:
sdex
changed the title
Sentry 5.7.2 with timber integration crahes the app when formats a message with args
Sentry 5.7.2 with timber integration crashes the app when formats a message with args
Apr 12, 2022
Integration
sentry-android-timber
Build System
Gradle
AGP Version
7.1.3
Proguard
Disabled
Version
5.7.2
Steps to Reproduce
Timber.d("test %s, %s", 1, 1);
Version 5.7.1 works fine. It seems like the #1974 PR causes this. The
args
is passed incorrectly - missing asterisk.Expected Result
A log message:
test 1 1
Actual Result
The text was updated successfully, but these errors were encountered: