mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-13 01:30:31 +08:00
fixed logging depth
This commit is contained in:
parent
0f4b990eae
commit
85c67ffcbb
@ -195,10 +195,10 @@ class Hid(multiprocessing.Process): # pylint: disable=too-many-instance-attribu
|
||||
async with self.__lock:
|
||||
if self.is_alive():
|
||||
self.__unsafe_clear_events()
|
||||
get_logger().info("Stopping HID daemon ...")
|
||||
get_logger(0).info("Stopping HID daemon ...")
|
||||
self.__stop_event.set()
|
||||
else:
|
||||
get_logger().warning("Emergency cleaning up HID events ...")
|
||||
get_logger(0).warning("Emergency cleaning up HID events ...")
|
||||
self.__emergency_clear_events()
|
||||
if self.exitcode is not None:
|
||||
self.join()
|
||||
|
||||
@ -298,7 +298,7 @@ class MassStorageDevice: # pylint: disable=too-many-instance-attributes
|
||||
raise
|
||||
state = self.get_state()
|
||||
await self.__state_queue.put(state)
|
||||
get_logger().info("Mass-storage device switched to KVM: %s", self.__device_info)
|
||||
get_logger(0).info("Mass-storage device switched to KVM: %s", self.__device_info)
|
||||
return state
|
||||
|
||||
@_msd_working
|
||||
@ -311,7 +311,7 @@ class MassStorageDevice: # pylint: disable=too-many-instance-attributes
|
||||
self.__device_info = None
|
||||
state = self.get_state()
|
||||
await self.__state_queue.put(state)
|
||||
get_logger().info("Mass-storage device switched to Server")
|
||||
get_logger(0).info("Mass-storage device switched to Server")
|
||||
return state
|
||||
|
||||
@_msd_working
|
||||
@ -319,7 +319,7 @@ class MassStorageDevice: # pylint: disable=too-many-instance-attributes
|
||||
@aiotools.atomic
|
||||
async def reset(self) -> None:
|
||||
with self.__region:
|
||||
get_logger().info("Mass-storage device reset")
|
||||
get_logger(0).info("Mass-storage device reset")
|
||||
gpio.write(self.__reset_pin, True)
|
||||
await asyncio.sleep(self.__reset_delay)
|
||||
gpio.write(self.__reset_pin, False)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user