Skip to content

Commit

Permalink
bugfix: file logger did clear the file after app restart
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Flisar authored and Michael Flisar committed Oct 10, 2024
1 parent fa75e96 commit ce1b24a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class FileLogger(
file?.parent?.let {
FileSystem.SYSTEM.createDirectories(it)
}
bufferWriter = FileSystem.SYSTEM.sink(file!!).buffer()
bufferWriter = FileSystem.SYSTEM.appendingSink(file!!).buffer()
}
val writer = bufferWriter!!

Expand Down

0 comments on commit ce1b24a

Please sign in to comment.