Skip to content

Commit 81cbd0c

Browse files
committed
fix(bugsnag): attach app logs to handled error events
The isUnhandled early-return was preventing log metadata from being attached to errors reported via Bugsnag.notify(). Signed-off-by: Brandon McAnsh <git@bmcreations.dev>
1 parent 8be45e6 commit 81cbd0c

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

apps/flipcash/app/src/main/kotlin/com/flipcash/app/internal/debug/FlipcashBugsnagErrorCallback.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ internal val FlipcashErrorCallback = OnErrorCallback onError@{ event ->
1919
return@onError false
2020
}
2121

22-
if (!event.isUnhandled) return@onError true
23-
2422
// Attach recent logs
2523
val logFile = TraceManager.getLogFile(includeHeader = false)
2624
if (logFile != null && logFile.exists()) {

0 commit comments

Comments
 (0)