Flush stdio to prevent buffering multiple debugging messages when redirecting output to file.

This commit is contained in:
Frans de Jonge
2014-10-18 15:18:01 +02:00
parent f3d5d5b030
commit 65d3cacd7c

View File

@@ -21,6 +21,7 @@ local function LvDEBUG(lv, ...)
android.LOGI("#"..line)
else
print("#"..line)
io.flush()
end
end