Skip to content

Commit

Permalink
fixup! Configure tinylog
Browse files Browse the repository at this point in the history
  • Loading branch information
jmattheis committed Oct 8, 2023
1 parent f74c2fa commit 3f48a1b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/src/main/kotlin/com/github/gotify/log/LoggerHelper.kt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ class LoggerHelper {
.reversed()
.joinToString(separator = "\n")

private fun groupExceptions(newLines: MutableList<String>, line: String): MutableList<String> {
private fun groupExceptions(
newLines: MutableList<String>,
line: String
): MutableList<String> {
if (newLines.isNotEmpty() && (line.startsWith('\t') || line.startsWith("Caused"))) {
newLines[newLines.lastIndex] += '\n' + line
} else {
Expand Down

0 comments on commit 3f48a1b

Please sign in to comment.