From e2b099b4fb44c25c02a468cfc2b7e5d4f78fcc6a Mon Sep 17 00:00:00 2001
From: Thomas Juerges <4-jurges@users.noreply.git.astron.nl>
Date: Sat, 4 Apr 2020 01:08:12 +0200
Subject: [PATCH] Change the log stuff back to print

I cannot - for my life! - figure out how to log something to the logging system.
---
 crossechoTangoDev/Crossecho.py | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/crossechoTangoDev/Crossecho.py b/crossechoTangoDev/Crossecho.py
index 17fb6c6d0..b087a43a6 100644
--- a/crossechoTangoDev/Crossecho.py
+++ b/crossechoTangoDev/Crossecho.py
@@ -95,9 +95,9 @@ class Crossecho(Device):
             self.opc_obj = self.client.get_root_node().get_child(["0:Objects",
                                                 "{}:StationMetrics".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:
-            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
 
     def always_executed_hook(self):
@@ -146,9 +146,9 @@ class Crossecho(Device):
         # PROTECTED REGION ID(Crossecho.record_cross) ENABLED START #
         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)
-            self.logger.debug("Timestamp is ", timeStamp)
-            self.logger.debug("Crosscorrelations are ", self.crosslet_stat)
-            self.logger.debug("RCU modes are", self.RCU_modes)
+            print("Timestamp is ", timeStamp)
+            print("Crosscorrelations are ", self.crosslet_stat)
+            print("RCU modes are", self.RCU_modes)
 
         # PROTECTED REGION END #    //  Crossecho.record_cross
 
-- 
GitLab