diff --git a/Sources/App/Log.swift b/Sources/App/Log.swift index 96e2b7e..9eac9e2 100644 --- a/Sources/App/Log.swift +++ b/Sources/App/Log.swift @@ -33,7 +33,8 @@ enum Log { try "[\(date)] Failed to start log.\n".write(to: url, atomically: false, encoding: .utf8) return } - file?.write("[\(date)] Logging started.\n".data(using: .utf8)!) + f.seekToEndOfFile() + f.write("[\(date)] Logging started.\n".data(using: .utf8)!) file = f }