SIENTIAPDE-1110

Enhance logging in OPC activity by adding debug statements for output configuration and server details to improve traceability.
This commit is contained in:
vitor-aignosi
2025-06-27 10:45:39 -03:00
parent cb8ffd57c0
commit a1b7d8e024

View File

@@ -98,6 +98,8 @@ class OPC(BaseActivity):
success = True success = True
self.logger.debug(f"OPC output config: {opc_output_config}")
self.logger.debug(f"OPC servers: {self.opc_repository}")
for server_id, config in opc_output_config.items(): for server_id, config in opc_output_config.items():
if self.opc_repository.get(server_id) is None: if self.opc_repository.get(server_id) is None:
self.error(f"OPC server {server_id} not found", metadata) self.error(f"OPC server {server_id} not found", metadata)