diff --git a/devices/APSCTL.py b/devices/APSCTL.py index b9d47680875422b60bc124917e342dbf177d7ac2..068ec2ab411c25395e06577121d78ffc575cdb55 100644 --- a/devices/APSCTL.py +++ b/devices/APSCTL.py @@ -187,6 +187,11 @@ class APSCTL(hardware_device): # ---------- def main(args=None, **kwargs): """Main function of the SDP module.""" + + from util.lofar_logging import configure_logger + import logging + configure_logger(logging.getLogger()) + return run((APSCTL,), args=args, **kwargs) diff --git a/devices/PCC.py b/devices/PCC.py index 37acfc1d3fa48cb3db4ce1dd4ebdd7a0ffa6b667..e8eb9bc94b689bc616ce49dba9601b0ed99de7a7 100644 --- a/devices/PCC.py +++ b/devices/PCC.py @@ -243,6 +243,11 @@ class PCC(hardware_device): # ---------- def main(args=None, **kwargs): """Main function of the PCC module.""" + + from util.lofar_logging import configure_logger + import logging + configure_logger(logging.getLogger()) + return run((PCC,), args=args, **kwargs) diff --git a/devices/SDP.py b/devices/SDP.py index 09a8c809ab52fda9dfdbc37b39f9a42fcff871c5..56091d98bcd2f2eca6ff859e8ec0590c044b8854 100644 --- a/devices/SDP.py +++ b/devices/SDP.py @@ -167,6 +167,11 @@ class SDP(hardware_device): # ---------- def main(args=None, **kwargs): """Main function of the SDP module.""" + + from util.lofar_logging import configure_logger + import logging + configure_logger(logging.getLogger()) + return run((SDP,), args=args, **kwargs) diff --git a/devices/SNMP.py b/devices/SNMP.py index db748639ef3c784792b0d5e2211019b50bac1e9f..eb90b276896f5e07f16eceb43c1dbf810da1b2ae 100644 --- a/devices/SNMP.py +++ b/devices/SNMP.py @@ -110,6 +110,11 @@ class SNMP(hardware_device): # ---------- def main(args=None, **kwargs): """Main function of the PCC module.""" + + from util.lofar_logging import configure_logger + import logging + configure_logger(logging.getLogger()) + return run((SNMP,), args=args, **kwargs) diff --git a/devices/Statistics.py b/devices/Statistics.py index 0c0b5ad7326b2f7e3e59ece57b0cf1cf3bc0205c..6598322873949b5ab53360b204b798227b539a0a 100644 --- a/devices/Statistics.py +++ b/devices/Statistics.py @@ -99,6 +99,11 @@ class Statistics(hardware_device): # ---------- def main(args=None, **kwargs): """Main function of the Statistics Device module.""" + + from util.lofar_logging import configure_logger + import logging + configure_logger(logging.getLogger()) + return run((Statistics,), args=args, **kwargs)