diff --git a/App.tsx b/App.tsx index 974956f..7e7a04d 100644 --- a/App.tsx +++ b/App.tsx @@ -55,7 +55,7 @@ const App = () => { await AppDataSource.initialize().catch((e) => setError(e.toString())); const gotSettings = await settingsRepo.findOne({ where: {} }); - console.log({ gotSettings }); + console.log(`${App.name}.mount`, { gotSettings }); setAppSettings({ startup: gotSettings.startup, theme: gotSettings.theme, diff --git a/EditExercises.tsx b/EditExercises.tsx index d93c263..ee8ecb4 100644 --- a/EditExercises.tsx +++ b/EditExercises.tsx @@ -54,7 +54,7 @@ export default function EditExercises() { .groupBy("name") .getMany() .then((gymSets) => { - console.log({ gymSets }); + console.log(`${EditExercises.name}.focus:`, { gymSets }); setOldNames(gymSets.map((set) => set.name).join(", ")); setOldSteps(gymSets.map((set) => set.steps).join(", ")); setOldMinutes(gymSets.map((set) => set.minutes).join(", ")); diff --git a/ExerciseItem.tsx b/ExerciseItem.tsx index 1f6236a..544349e 100644 --- a/ExerciseItem.tsx +++ b/ExerciseItem.tsx @@ -48,7 +48,7 @@ export default function ExerciseItem({ }, [dark, names, item.name]); const press = () => { - console.log({ names }); + console.log(`${ExerciseItem.name}.press:`, { names }); if (names.length === 0) return navigation.navigate("EditExercise", { gymSet: item }); const removing = names.find((name) => name === item.name); diff --git a/SetList.tsx b/SetList.tsx index 19e8946..b8aa66e 100644 --- a/SetList.tsx +++ b/SetList.tsx @@ -72,7 +72,7 @@ export default function SetList() { ); const next = async () => { - console.log({ end, refreshing }); + console.log(`${SetList.name}.next:`, { end, refreshing }); if (end || refreshing) return; const newOffset = offset + LIMIT; console.log(`${SetList.name}.next:`, { offset, newOffset, term }); diff --git a/StartPlan.tsx b/StartPlan.tsx index 6079de3..e105f61 100644 --- a/StartPlan.tsx +++ b/StartPlan.tsx @@ -74,7 +74,6 @@ export default function StartPlan() { where: { name: exercise.name }, order: { created: "desc" }, }); - console.log({ last }); if (!last) return; delete last.id; console.log(`${StartPlan.name}.select:`, { last }); @@ -129,7 +128,7 @@ export default function StartPlan() { const canNotify = await check(PERMISSIONS.ANDROID.POST_NOTIFICATIONS); if (canNotify === RESULTS.DENIED) await request(PERMISSIONS.ANDROID.POST_NOTIFICATIONS); - NativeModules.AlarmModule.timer(milliseconds); + NativeModules.AlarmModule.timer(milliseconds, `${exercise.name} (${exercise.total + 1}/${best.sets})`); }; return ( diff --git a/TimerProgress.tsx b/TimerProgress.tsx index c8ca9e2..1bad7d0 100644 --- a/TimerProgress.tsx +++ b/TimerProgress.tsx @@ -11,7 +11,6 @@ export default function TimerProgress() { "tick", ({ minutes, seconds }: TickEvent) => { setProgress((Number(minutes) * 60 + Number(seconds)) / 210); - console.log({ minutes, seconds }); } ); return description.remove; diff --git a/ViewGraph.tsx b/ViewGraph.tsx index b6201ea..e5516a1 100644 --- a/ViewGraph.tsx +++ b/ViewGraph.tsx @@ -84,7 +84,7 @@ export default function ViewGraph() { .getRawMany() .then(newWeights => newWeights.map(set => ({ ...set, weight: convertWeight(set.weight, set.unit, unit) }))) .then((newWeights) => { - console.log({ weights: newWeights }); + console.log(`${ViewGraph.name}.oneRepMax:`, { weights: newWeights }); setWeights(newWeights); }); } diff --git a/WeightList.tsx b/WeightList.tsx index 0254848..f916aa5 100644 --- a/WeightList.tsx +++ b/WeightList.tsx @@ -70,7 +70,7 @@ export default function WeightList() { ); const next = async () => { - console.log({ end, refreshing }); + console.log(`${WeightList.name}.next:`, { end, refreshing }); if (end || refreshing) return; const newOffset = offset + LIMIT; console.log(`${WeightList.name}.next:`, { offset, newOffset, term });