diff --git a/socs/agents/hwp_encoder/agent.py b/socs/agents/hwp_encoder/agent.py index 3eda0b160..60b514f1b 100644 --- a/socs/agents/hwp_encoder/agent.py +++ b/socs/agents/hwp_encoder/agent.py @@ -52,6 +52,7 @@ import argparse import calendar +import os import select import socket import struct @@ -365,7 +366,8 @@ def grab_and_parse_data(self): # Clear self.data self.data = '' elif header == 0x1234: - self.log.error('Received timeout packet.') + # Expected behavior when HWP is not spinning + self.log.debug('Received timeout packet.') # Clear self.data self.data = '' else: @@ -699,6 +701,9 @@ def make_parser(parser=None): # Portion of the code that runs def main(args=None): + # Start logging + txaio.start_logging(level=os.environ.get("LOGLEVEL", "info")) + parser = make_parser() args = site_config.parse_args(agent_class='HWPBBBAgent', parser=parser,