SIENTIAPDE-1325
Update OPC connection logging to include server name in connection message
This commit is contained in:
@@ -143,7 +143,7 @@ class OpcRepository(SientiaMonitoring):
|
|||||||
|
|
||||||
if self.cert_path:
|
if self.cert_path:
|
||||||
await self.set_security()
|
await self.set_security()
|
||||||
self.logger.custom_info(f'Starting connection to OPC server {self.id}...', self.metadata)
|
self.logger.custom_info(f'Starting connection to OPC server {self.id}:{self.server_name}...', self.metadata)
|
||||||
return await self.try_connect()
|
return await self.try_connect()
|
||||||
|
|
||||||
async def try_connect(self) -> tuple[bool, dict[str, Any]]:
|
async def try_connect(self) -> tuple[bool, dict[str, Any]]:
|
||||||
|
|||||||
Reference in New Issue
Block a user