Skip to content

Commit

Permalink
Add timestamp to record logs
Browse files Browse the repository at this point in the history
  • Loading branch information
HarelM committed Dec 9, 2021
1 parent bdd19c9 commit 028db2c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ export class RecordedRouteService {
private validateRecordingAndUpdateState(position: GeolocationPosition, lastValidLocation: LatLngAltTime): boolean {
let nonValidReason = this.isValid(lastValidLocation, position);
if (nonValidReason === "") {
this.loggingService.debug(`[Record] Valid position, updating: (${position.coords.latitude}, ${position.coords.longitude})`);
this.loggingService.debug(`[Record] Valid position, updating. coord: (${position.coords.latitude}, ${position.coords.longitude}), time: ${new Date(position.timestamp).toISOString()}`);
this.rejectedPosition = null;
return true;
}
Expand Down

0 comments on commit 028db2c

Please sign in to comment.