SIENTIAPDE-1110
Update OPC activity to utilize custom logger in write_data method, improving error handling and traceability.
This commit is contained in:
@@ -57,7 +57,7 @@ class OPC(BaseActivity):
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
return self.opc_repository[server_id].write_data(
|
return self.opc_repository[server_id].write_data(
|
||||||
tag, data, data_type, self, metadata)
|
tag, data, data_type, self.logger, metadata)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
trace = traceback.format_exc()
|
trace = traceback.format_exc()
|
||||||
self.notification_handler.build_and_send_notification(
|
self.notification_handler.build_and_send_notification(
|
||||||
|
|||||||
Reference in New Issue
Block a user