Skip to content
Snippets Groups Projects
Commit 018676f3 authored by Jan David Mol's avatar Jan David Mol
Browse files

Log devices under their correct name

parent 3e9a87a7
No related branches found
No related tags found
No related merge requests found
...@@ -20,10 +20,12 @@ from tango.server import device_property ...@@ -20,10 +20,12 @@ from tango.server import device_property
from clients.opcua_connection import OPCUAConnection from clients.opcua_connection import OPCUAConnection
from src.attribute_wrapper import * from src.attribute_wrapper import *
from src.hardware_device import * from src.hardware_device import *
from src.lofar_logging import device_logging_to_python
__all__ = ["PCC", "main"] __all__ = ["PCC", "main"]
@device_logging_to_python({"device": "PCC"})
class PCC(hardware_device): class PCC(hardware_device):
""" """
......
...@@ -19,10 +19,12 @@ from tango.server import device_property ...@@ -19,10 +19,12 @@ from tango.server import device_property
from clients.opcua_connection import OPCUAConnection from clients.opcua_connection import OPCUAConnection
from src.attribute_wrapper import * from src.attribute_wrapper import *
from src.hardware_device import * from src.hardware_device import *
from src.lofar_logging import device_logging_to_python
__all__ = ["SDP", "main"] __all__ = ["SDP", "main"]
@device_logging_to_python({"device": "SDP"})
class SDP(hardware_device): class SDP(hardware_device):
""" """
......
...@@ -17,7 +17,7 @@ from tango import DevState, DebugIt ...@@ -17,7 +17,7 @@ from tango import DevState, DebugIt
# Additional import # Additional import
from src.attribute_wrapper 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"] __all__ = ["hardware_device"]
...@@ -25,7 +25,6 @@ __all__ = ["hardware_device"] ...@@ -25,7 +25,6 @@ __all__ = ["hardware_device"]
from src.wrappers import only_in_states from src.wrappers import only_in_states
@device_logging_to_python({"device": "SDP"})
class hardware_device(Device): class hardware_device(Device):
""" """
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment