Skip to content
Snippets Groups Projects
Commit e2b099b4 authored by Thomas Juerges's avatar Thomas Juerges
Browse files

Change the log stuff back to print

I cannot - for my life! - figure out how to log something to the logging system.
parent e2bc6c00
No related branches found
No related tags found
No related merge requests found
...@@ -95,9 +95,9 @@ class Crossecho(Device): ...@@ -95,9 +95,9 @@ class Crossecho(Device):
self.opc_obj = self.client.get_root_node().get_child(["0:Objects", self.opc_obj = self.client.get_root_node().get_child(["0:Objects",
"{}:StationMetrics".format(idx), "{}:StationMetrics".format(idx),
"{}:RCU".format(idx)]) "{}:RCU".format(idx)])
self.logger.info("Connected to the OPC-UA server %s", self.OPC_Server_Name) print("Connected to the OPC-UA server %s", self.OPC_Server_Name)
except: except:
self.logger.error("Failed to connect to the OPC-UA server %s. Traceback: %s", self.OPC_Server_Name, traceback.format_exc()) print("Failed to connect to the OPC-UA server %s. Traceback: %s", self.OPC_Server_Name, traceback.format_exc())
# PROTECTED REGION END # // Crossecho.init_device # PROTECTED REGION END # // Crossecho.init_device
def always_executed_hook(self): def always_executed_hook(self):
...@@ -146,9 +146,9 @@ class Crossecho(Device): ...@@ -146,9 +146,9 @@ class Crossecho(Device):
# PROTECTED REGION ID(Crossecho.record_cross) ENABLED START # # PROTECTED REGION ID(Crossecho.record_cross) ENABLED START #
if self.is_record_cross_allowed() is True: if self.is_record_cross_allowed() is True:
timeStamp, self.crosslet_stat, self.RCU_modes = self.opc_obj.call_method("{}:record_cross".format(idx), self.subBand, self.integrationTime) timeStamp, self.crosslet_stat, self.RCU_modes = self.opc_obj.call_method("{}:record_cross".format(idx), self.subBand, self.integrationTime)
self.logger.debug("Timestamp is ", timeStamp) print("Timestamp is ", timeStamp)
self.logger.debug("Crosscorrelations are ", self.crosslet_stat) print("Crosscorrelations are ", self.crosslet_stat)
self.logger.debug("RCU modes are", self.RCU_modes) print("RCU modes are", self.RCU_modes)
# PROTECTED REGION END # // Crossecho.record_cross # PROTECTED REGION END # // Crossecho.record_cross
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment