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

L2SS-244: Configure logging to actually see log lines in 'docker logs device-xyz'

parent ecf4c781
No related branches found
No related tags found
1 merge request!56L2SS-244: Expose the SSTs in MPs
......@@ -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)
......
......@@ -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)
......
......@@ -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)
......
......@@ -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)
......
......@@ -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)
......
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