Skip to content

Commit

Permalink
tidy excessive logs
Browse files Browse the repository at this point in the history
  • Loading branch information
JGreenlee committed Aug 16, 2024
1 parent 90595e9 commit d1d7867
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 12 deletions.
3 changes: 1 addition & 2 deletions www/js/diary/addressNamesHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,7 @@ async function fetchNominatimLocName(loc_geojson) {
const coordsStr = loc_geojson.coordinates.toString();
const cachedResponse = localStorage.getItem(coordsStr);
if (cachedResponse) {
logDebug(`fetchNominatimLocName: found cached response for ${coordsStr} =
${cachedResponse}, skipping fetch`);
logDebug(`fetchNominatimLocName: found cached response for ${coordsStr}`);
return;
}
logDebug('Getting location name for ' + JSON.stringify(coordsStr));
Expand Down
8 changes: 1 addition & 7 deletions www/js/diary/timelineHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -442,10 +442,7 @@ function tripTransitions2UnprocessedTrip(
startTs: tripStartTransition.data.ts,
endTs: tripEndTransition.data.ts,
};
logDebug(`About to pull location data for range:
${DateTime.fromSeconds(tripStartTransition.data.ts).toLocaleString(DateTime.DATETIME_MED)}
to
${DateTime.fromSeconds(tripEndTransition.data.ts).toLocaleString(DateTime.DATETIME_MED)}`);
logDebug(`About to pull location data for range: ${tq.startTs} to ${tq.endTs}`);
const getSensorData = window['cordova'].plugins.BEMUserCache.getSensorDataForInterval;
return getUnifiedDataForInterval('background/filtered_location', tq, getSensorData).then(
(locationList: Array<BEMData<FilteredLocation>>) => {
Expand Down Expand Up @@ -605,9 +602,6 @@ export function readUnprocessedTrips(
logDebug(`Found ${transitionList.length} transitions. yay!`);
const tripsList = transitions2TripTransitions(transitionList);
logDebug(`Mapped into ${tripsList.length} trips. yay!`);
tripsList.forEach((trip) => {
logDebug(JSON.stringify(trip, null, 2));
});
const tripFillPromises = tripsList.map((t) =>
tripTransitions2UnprocessedTrip(t, appConfig),
);
Expand Down
3 changes: 0 additions & 3 deletions www/js/survey/multilabel/confirmHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,9 @@ export function labelInputDetailsForTrip(userInputForTrip, appConfigParam?) {
Needs REPLACED_MODE`);
return getLabelInputDetails();
} else {
logDebug(`Found trip labeled with ${userInputForTrip?.['MODE']?.data?.label}, not labeled with mode of study = ${appConfig.intro.mode_studied}.
Doesn't need REPLACED_MODE`);
return baseLabelInputDetails;
}
} else {
logDebug('No mode of study, so there is no REPLACED_MODE label option');
return getLabelInputDetails();
}
}
Expand Down

0 comments on commit d1d7867

Please sign in to comment.