diff --git a/devices/PCC.py b/devices/PCC.py index 7893073c1baa033ef1e5c9a1f85965ae127dc30b..472ab404b68b8d78e8fe3659bbc3ec7334480cc4 100644 --- a/devices/PCC.py +++ b/devices/PCC.py @@ -20,10 +20,12 @@ from tango.server import device_property from clients.opcua_connection import OPCUAConnection from src.attribute_wrapper import * from src.hardware_device import * +from src.lofar_logging import device_logging_to_python __all__ = ["PCC", "main"] +@device_logging_to_python({"device": "PCC"}) class PCC(hardware_device): """ diff --git a/devices/SDP.py b/devices/SDP.py index 2f54bed7bc727323eed635b81880ad4b783f19c0..ec53be8a722e7f355f18b8655cb74b05fa5033cc 100644 --- a/devices/SDP.py +++ b/devices/SDP.py @@ -19,10 +19,12 @@ from tango.server import device_property from clients.opcua_connection import OPCUAConnection from src.attribute_wrapper import * from src.hardware_device import * +from src.lofar_logging import device_logging_to_python __all__ = ["SDP", "main"] +@device_logging_to_python({"device": "SDP"}) class SDP(hardware_device): """ diff --git a/devices/src/hardware_device.py b/devices/src/hardware_device.py index 2f11b673149fc2484b3315dd3eaf260161657b89..01bc2f445e8bb29ecd0ad38198c84d05cc5df1e0 100644 --- a/devices/src/hardware_device.py +++ b/devices/src/hardware_device.py @@ -17,7 +17,7 @@ from tango import DevState, DebugIt # Additional import from src.attribute_wrapper import * -from src.lofar_logging import device_logging_to_python, log_exceptions +from src.lofar_logging import log_exceptions __all__ = ["hardware_device"] @@ -25,7 +25,6 @@ __all__ = ["hardware_device"] from src.wrappers import only_in_states -@device_logging_to_python({"device": "SDP"}) class hardware_device(Device): """