Skip to content

Commit

Permalink
Changed additional logging to debug instead of info.
Browse files Browse the repository at this point in the history
  • Loading branch information
dboulware committed Oct 26, 2023
1 parent 3c1b9f3 commit 9e4a923
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions scos_actions/calibration/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ def get_sensor_calibration(sensor_cal_file: Path) -> Calibration:
return sensor_cal


logger.info(f"Loading sensor cal file: {SENSOR_CALIBRATION_FILE}")
logger.debug(f"Loading sensor cal file: {SENSOR_CALIBRATION_FILE}")
sensor_calibration = get_sensor_calibration(SENSOR_CALIBRATION_FILE)
logger.info(f"Loading sigan cal file: {SIGAN_CALIBRATION_FILE}")
logger.debug(f"Loading sigan cal file: {SIGAN_CALIBRATION_FILE}")
sigan_calibration = get_sigan_calibration(SIGAN_CALIBRATION_FILE)
if sensor_calibration:
logger.debug(f"Last sensor cal: {sensor_calibration.last_calibration_datetime}")
6 changes: 3 additions & 3 deletions scos_actions/hardware/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,15 @@ def load_preselector(preselector_config, module, preselector_class_name):
preselector_constructor = getattr(preselector_module, preselector_class_name)
ps = preselector_constructor(capabilities["sensor"], preselector_config)
if ps and ps.name:
logger.info(f"Registering {ps.name} as status provider")
logger.debug(f"Registering {ps.name} as status provider")
register_component_with_status.send(__name__, component=ps)
else:
ps = None
return ps


register_component_with_status.connect(status_registration_handler)
logger.info("Connected status registration handler")
logger.debug"Connected status registration handler")
preselector = load_preselector_from_file(PRESELECTOR_CONFIG_FILE)
switches = load_switches(SWITCH_CONFIGS_DIR)
logger.info(f"Loaded {(len(switches))} switches.")
logger.debug(f"Loaded {(len(switches))} switches.")
2 changes: 1 addition & 1 deletion scos_actions/status/status_registration_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

def status_registration_handler(sender, **kwargs):
try:
logger.info(f"Registering {sender} as status provider")
logger.debug(f"Registering {sender} as status provider")
status_registrar.add_component(kwargs["component"])
except:
logger.exception("Error registering status component")

0 comments on commit 9e4a923

Please sign in to comment.