improve logging output

This commit is contained in:
Stefan Allius
2024-06-03 19:52:37 +02:00
parent 8baa68e615
commit 8204cae2b1
7 changed files with 28 additions and 8 deletions

View File

@@ -56,7 +56,7 @@ class InverterG3P(Inverter, ConnectionG3P):
addr = (host, port)
try:
logging.info(f'Connected to {addr}')
logging.info(f'[{self.node_id}] Connected to {addr}')
connect = asyncio.open_connection(host, port)
reader, writer = await connect
self.remoteStream = ConnectionG3P(reader, writer, addr, self,