Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed additional logging to debug instead of info. #96

Merged
merged 1 commit into from
Oct 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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")