Skip to content

Commit

Permalink
additional debug logging.
Browse files Browse the repository at this point in the history
  • Loading branch information
dboulware committed Mar 17, 2024
1 parent 5d5289f commit 40d6d0a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scos_actions/calibration/sensor_calibration.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ def has_expired_cal_data(cal_data: dict, now: datetime, time_limit: int) -> bool
def date_expired(cal_data: dict, now: datetime, time_limit: int):
cal_datetime = parse_datetime_iso_format_str(cal_data["datetime"])
elapsed = now - cal_datetime
logger.debug(f"{cal_datetime} is {elapsed} seconds old")
if elapsed.total_seconds() > time_limit:
logger.debug(
f"Calibration {cal_data} has expired at {elapsed.total_seconds()} seconds old."
Expand Down

0 comments on commit 40d6d0a

Please sign in to comment.