mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 00:51:53 +08:00
取消中文日志
中文日志没有必要,减低代码耦合
This commit is contained in:
@@ -30,17 +30,12 @@ from xmlrpc.client import ServerProxy
|
||||
|
||||
from ...logging import get_logger
|
||||
|
||||
us_systemd_journal = True
|
||||
try:
|
||||
import systemd.journal
|
||||
except ImportError as e:
|
||||
get_logger(0).error("Failed to import module: %s", "systemd.journal")
|
||||
us_systemd_journal = False
|
||||
|
||||
try:
|
||||
except ImportError:
|
||||
import supervisor.xmlrpc
|
||||
except ImportError as e:
|
||||
get_logger(0).info("Failed to import module: %s", "supervisor.xmlrpc")
|
||||
us_systemd_journal = True
|
||||
us_systemd_journal = False
|
||||
|
||||
|
||||
# =====
|
||||
|
||||
@@ -136,8 +136,6 @@ class _GpioOutput: # pylint: disable=too-many-instance-attributes
|
||||
|
||||
self.__region = aiotools.AioExclusiveRegion(GpioChannelIsBusyError, notifier)
|
||||
|
||||
self.gettext=Languages().gettext
|
||||
|
||||
def is_const(self) -> bool:
|
||||
return (not self.__switch and not self.__pulse_delay)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user