Skip to content

Commit

Permalink
Include the stack trace in logged errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jayohms committed Aug 21, 2023
1 parent 0f423b0 commit e9b7d5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion strada/src/main/kotlin/dev/hotwire/strada/StradaLog.kt
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@ internal fun logWarning(event: String, details: String) {
}

internal fun logError(event: String, error: Exception) {
StradaLog.e("$event: $error")
StradaLog.e("$event: ${error.stackTraceToString()}")
}

0 comments on commit e9b7d5b

Please sign in to comment.