diff --git a/door_pi_control/nfc.py b/door_pi_control/nfc.py index cf4caf1..3652927 100644 --- a/door_pi_control/nfc.py +++ b/door_pi_control/nfc.py @@ -45,7 +45,7 @@ class DoorControlNfc(util.Loggable): else: valid_thru = None except Exception: - self._logger().error(f"Could not parse valid thru date for token {token} in line {i}") + self._logger().exception(f"Could not parse valid thru date {valid_thru} for token {token} in line {i+1}") valid_thru = None self._logger().debug(f"Got token {token} associated with {name} <{email}> of {organization}, valid thru {valid_thru}") if token in valid: