From b51a57ff7d86c26805d00476960b8dd24eb0ed2c Mon Sep 17 00:00:00 2001 From: Jan David Mol <mol@astron.nl> Date: Thu, 3 Dec 2020 16:57:41 +0100 Subject: [PATCH] Made error messages bit more uniform --- RCUSCC/RCUSCC/RCUSCC.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RCUSCC/RCUSCC/RCUSCC.py b/RCUSCC/RCUSCC/RCUSCC.py index acc22c385..73cf614ca 100644 --- a/RCUSCC/RCUSCC/RCUSCC.py +++ b/RCUSCC/RCUSCC/RCUSCC.py @@ -60,7 +60,7 @@ def fault_on_opcua_error(func): try: return func(self, *args, **kwargs) except Exception as e: - self.error_stream("Communication with the OPC-UA server %s:%d failed. Reconnecting. Trace: %s" % (self.OPC_Server_Name, self.OPC_Server_Port, traceback.format_exc())) + self.error_stream("Communication with the server %s failed. Trace: %s", self.client.server_url.geturl(), traceback.format_exc()) self.Fault() return None -- GitLab