diff --git a/persistence.lua b/persistence.lua index 2a23886..cae0827 100644 --- a/persistence.lua +++ b/persistence.lua @@ -139,5 +139,5 @@ function lua_log_file:rewrite() self.file:close() end self:_rewrite() - self.file = io.open(self.file_path, "a+") + self:open() end \ No newline at end of file