mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 09:10:30 +08:00
logging fix
This commit is contained in:
parent
67f13df5b8
commit
35bd5ac719
@ -259,7 +259,7 @@ class Plugin(BaseMsd): # pylint: disable=too-many-instance-attributes
|
||||
gpio.write(self.__target_pin, True)
|
||||
raise
|
||||
self.__on_kvm = True
|
||||
get_logger().info("MSD switched to KVM: %s", self._device_info)
|
||||
get_logger(0).info("MSD switched to KVM: %s", self._device_info)
|
||||
|
||||
state = self.get_state()
|
||||
return state
|
||||
@ -280,7 +280,7 @@ class Plugin(BaseMsd): # pylint: disable=too-many-instance-attributes
|
||||
|
||||
gpio.write(self.__target_pin, True)
|
||||
self.__on_kvm = False
|
||||
get_logger().info("MSD switched to Server")
|
||||
get_logger(0).info("MSD switched to Server")
|
||||
|
||||
state = self.get_state()
|
||||
return state
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user