mirror of
https://github.com/koreader/koreader.git
synced 2025-12-13 20:36:53 +01:00
dbg: prefix log with datetime
This commit is contained in:
@@ -20,7 +20,7 @@ local function LvDEBUG(lv, ...)
|
||||
if isAndroid then
|
||||
android.LOGI("#"..line)
|
||||
else
|
||||
print("#"..line)
|
||||
print(string.format("# %s %s", os.date("%x-%X"), line))
|
||||
io.stdout:flush()
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user