From e19b4aa84ab174a12dd8130fefa0a687a3f777a5 Mon Sep 17 00:00:00 2001 From: Brandon Presley Date: Mon, 19 Sep 2022 14:52:06 +1200 Subject: [PATCH] Make several logs one liners in SetList --- SetList.tsx | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/SetList.tsx b/SetList.tsx index 37bccef..692c8e4 100644 --- a/SetList.tsx +++ b/SetList.tsx @@ -50,7 +50,8 @@ export default function SetList() { const todaysSets = await getTodaysSets(); const todaysWorkouts = todaysPlan[0].workouts.split(','); let workout = todaysWorkouts[0]; - console.log(`${SetList.name}.predict:`, {todaysSets, todaysWorkouts}); + console.log(`${SetList.name}.predict:`, {todaysSets}); + console.log(`${SetList.name}.predict:`, {todaysWorkouts}); if (todaysWorkouts.includes(todaysSets[0]?.name) && todaysSets.length > 0) { const count = todaysSets.filter( s => s.name === todaysSets[0].name, @@ -62,7 +63,7 @@ export default function SetList() { } console.log(`${SetList.name}.predict:`, {workout}); const best = await getBestSet(workout); - console.log(`${SetList.name}.predict:`, {best}); + console.log(`${SetList.name}.predict:`, {bestName: best.name}); setSet({...best}); setWorkouts(todaysWorkouts); }, []); @@ -96,12 +97,7 @@ export default function SetList() { const next = useCallback(async () => { if (end) return; const newOffset = offset + limit; - console.log(`${SetList.name}.next:`, { - offset, - limit, - newOffset, - search, - }); + console.log(`${SetList.name}.next:`, {offset, newOffset, search}); const newSets = await getSets({ search: `%${search}%`, limit,