mirror of
https://github.com/sezanzeb/input-remapper
synced 2024-11-04 12:00:16 +00:00
improved get_devices log
This commit is contained in:
parent
373792f9a6
commit
aa8a1b4f3f
@ -133,5 +133,9 @@ def get_devices():
|
|||||||
_GetDevicesProcess(pipe[1]).start()
|
_GetDevicesProcess(pipe[1]).start()
|
||||||
# block until devices are available
|
# block until devices are available
|
||||||
_devices = pipe[0].recv()
|
_devices = pipe[0].recv()
|
||||||
logger.info('Found %s', ', '.join([f'"{name}"' for name in _devices]))
|
if len(_devices) == 0:
|
||||||
|
logger.error('Did not find any device')
|
||||||
|
else:
|
||||||
|
names = [f'"{name}"' for name in _devices]
|
||||||
|
logger.info('Found %s', ', '.join(names))
|
||||||
return _devices
|
return _devices
|
||||||
|
Loading…
Reference in New Issue
Block a user