mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
chore: make input debug less verbose
This commit is contained in:
committed by
Frans de Jonge
parent
819952ca54
commit
77b07255f0
@@ -48,6 +48,7 @@ function Dbg:turnOn()
|
||||
end
|
||||
end
|
||||
|
||||
-- TODO: close ev.log fd for children
|
||||
-- create or clear ev log file
|
||||
self.ev_log = io.open("ev.log", "w")
|
||||
end
|
||||
|
||||
@@ -594,7 +594,8 @@ function Input:waitEvent(timeout_us)
|
||||
if ok and ev then
|
||||
if DEBUG.is_on and ev then
|
||||
DEBUG:logEv(ev)
|
||||
logger.dbg("ev", ev)
|
||||
logger.dbg(string.format("input event => type: %d, code: %d, value: %d, time: %d.%d",
|
||||
ev.type, ev.code, ev.value, ev.time.sec, ev.time.usec))
|
||||
end
|
||||
self:eventAdjustHook(ev)
|
||||
if ev.type == EV_KEY then
|
||||
|
||||
Reference in New Issue
Block a user