修改减少modbus报警信息,以及websocket报警信息

This commit is contained in:
lixinyu1011
2025-11-08 15:18:52 +08:00
parent d4e1286df7
commit 45a778b928
2 changed files with 9 additions and 1 deletions

View File

@@ -421,7 +421,8 @@ class MessageProcessor:
ssl_context = ssl_module.create_default_context()
ws_logger = logging.getLogger("websockets.client")
ws_logger.setLevel(logging.INFO)
# ws_logger.setLevel(logging.INFO)
ws_logger.setLevel(logging.WARNING) # 只显示警告和错误
async with websockets.connect(
self.websocket_url,