chore(reading): remove noisy debounce log messages

Removed 'Debouncing save for 3000ms' logs that spam console on every scroll event. Keep only the actual save execution logs.
This commit is contained in:
Gigi
2025-10-22 23:55:59 +02:00
parent a611e99ff6
commit ae76d6e4ea

View File

@@ -71,7 +71,6 @@ export const useReadingPosition = ({
} }
const DEBOUNCE_MS = 3000 // Save max every 3 seconds const DEBOUNCE_MS = 3000 // Save max every 3 seconds
console.log(`[reading-position] [${new Date().toISOString()}] ⏱️ Debouncing save for ${DEBOUNCE_MS}ms (pos: ${Math.round(currentPosition * 100)}%)`)
saveTimerRef.current = setTimeout(() => { saveTimerRef.current = setTimeout(() => {
console.log(`[reading-position] [${new Date().toISOString()}] 💾 Auto-save at ${Math.round(currentPosition * 100)}%`) console.log(`[reading-position] [${new Date().toISOString()}] 💾 Auto-save at ${Math.round(currentPosition * 100)}%`)
lastSavedPosition.current = currentPosition lastSavedPosition.current = currentPosition