SIENTIAPDE-1110

Refactor logging in OPC and OpcRepository to utilize custom logging methods, enhancing error handling and traceability with metadata integration.
This commit is contained in:
vitor-aignosi
2025-06-27 12:24:15 -03:00
parent 119decac16
commit 566818b308
2 changed files with 8 additions and 10 deletions

View File

@@ -143,8 +143,8 @@ class OPC(BaseActivity):
if not success:
data['prediction_confidence'] = OPC_WRITTING_ERROR_CONFIDENCE
self.debug(
"Some data could not be written to OPC servers, setting confidence to "
f"{OPC_WRITTING_ERROR_CONFIDENCE}."
f"Some data could not be written to OPC servers, setting confidence to {OPC_WRITTING_ERROR_CONFIDENCE}.",
metadata
)
else: