summaryrefslogtreecommitdiff
path: root/server/src/log.lua
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/log.lua')
-rw-r--r--server/src/log.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/server/src/log.lua b/server/src/log.lua
index 3826e4f4..eb34505a 100644
--- a/server/src/log.lua
+++ b/server/src/log.lua
@@ -81,6 +81,8 @@ end
function log.init(root, path)
log.path = path:string()
log.prefix_len = #root:string() + 3
+ log.file = nil
+ log.size = 0
if not fs.exists(path:parent_path()) then
fs.create_directories(path:parent_path())
end