mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
chore(log/crashlytics): Only send error
This commit is contained in:
parent
aed615fe9c
commit
3ac6c551d6
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ class CrashlyticsLogWriter : LogWriter() {
|
|||
override fun log(severity: Severity, message: String, tag: String, throwable: Throwable?) {
|
||||
try {
|
||||
Firebase.crashlytics.log(DefaultFormatter.formatMessage(severity, Tag(tag), Message(message)))
|
||||
if (throwable != null && severity >= Severity.Warn) {
|
||||
if (throwable != null && severity >= Severity.Error) {
|
||||
Firebase.crashlytics.recordException(throwable)
|
||||
}
|
||||
} catch (_: Exception) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue