summaryrefslogtreecommitdiff
path: root/xmake/core/base/log.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/core/base/log.lua')
-rw-r--r--xmake/core/base/log.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/core/base/log.lua b/xmake/core/base/log.lua
index f3a9dba2b..35f480237 100644
--- a/xmake/core/base/log.lua
+++ b/xmake/core/base/log.lua
@@ -80,7 +80,7 @@ end
function log:flush()
local file = self:file()
if file then
- io.flush(file)
+ file:flush()
end
end