Skip to content

Commit

Permalink
Fixed OutputFormat.init not properly being called when file rolls (Re…
Browse files Browse the repository at this point in the history
…solves #277)
  • Loading branch information
darkfrog26 committed Mar 8, 2022
1 parent f0af247 commit b80c7fd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ case class FileWriter(pathBuilder: PathBuilder = PathBuilder.Default,

// Write to LogFile
val logFile = LogFile(this)
if (!previousFile.contains(_file)) {
if (!previousFile.contains(_file) || logFile.size == 0L) {
previousFile = Some(_file)
if (_file.length() == 0L || !append) {
outputFormat.init(logFile.write)
Expand Down

0 comments on commit b80c7fd

Please sign in to comment.