Skip to content

Commit

Permalink
fix:core:Optimize log message for required vehicle attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
jkoan committed Aug 12, 2020
1 parent 5e1377c commit 27d4844
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions navit/track.c
Original file line number Diff line number Diff line change
Expand Up @@ -637,10 +637,11 @@ void tracking_update(struct tracking *tr, struct vehicle *v, struct vehicleprofi
!vehicle_get_attr(tr->vehicle, attr_position_direction, &direction_attr, NULL) ||
!vehicle_get_attr(tr->vehicle, attr_position_coord_geo, &coord_geo, NULL) ||
!vehicle_get_attr(tr->vehicle, attr_position_time_iso8601, &time_attr, NULL)) {
dbg(lvl_error,"failed to get position data %d %d %d",
dbg(lvl_error,"failed to get position data speed:%d direction:%d coord:%d time:%d",
vehicle_get_attr(tr->vehicle, attr_position_speed, &speed_attr, NULL),
vehicle_get_attr(tr->vehicle, attr_position_direction, &direction_attr, NULL),
vehicle_get_attr(tr->vehicle, attr_position_coord_geo, &coord_geo, NULL));
vehicle_get_attr(tr->vehicle, attr_position_coord_geo, &coord_geo, NULL),
vehicle_get_attr(tr->vehicle, attr_position_time_iso8601, &time_attr, NULL));
return;
}
if (tr->tunnel_extrapolation) {
Expand Down

0 comments on commit 27d4844

Please sign in to comment.