From 32091d9a7b1785e3ca61f07e8925fefabcd33a06 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 14 Aug 2019 12:48:12 +1000 Subject: [PATCH] wacom: improve a timestamp debug message Signed-off-by: Peter Hutterer --- tuhi/wacom.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tuhi/wacom.py b/tuhi/wacom.py index 3f55778..d209e64 100644 --- a/tuhi/wacom.py +++ b/tuhi/wacom.py @@ -1083,7 +1083,8 @@ class WacomProtocolIntuosPro(WacomProtocolSlate): nstrokes = int.from_bytes(data[offset:offset + 2], byteorder='little') offset += 2 - logger.debug(f'Drawing timestamp: {t}, {nstrokes} strokes') + timestamp = time.strftime('%Y%m%d-%H%M%S', t) + logger.debug(f'Drawing timestamp: {timestamp}, {nstrokes} strokes') # Can't have enough zeroes. They'll come in handy one day expected_header = b'\x00\x00\x00\x00'