Skip to content

Speakr is a personal, self-hosted web application designed for transcribing audio recordings

Python

Remove debug console.log statements

Murtaza Nasir908e56a1cc63
diff --git a/static/js/app.modular.js b/static/js/app.modular.js
index f441c97d..2b8d54ec 100644
--- a/static/js/app.modular.js
+++ b/static/js/app.modular.js
@@ -954,26 +954,6 @@ document.addEventListener('DOMContentLoaded', async () => {
// Speakers composable needs processedTranscription, so initialize it after
const speakersComposable = useSpeakers(state, utils, processedTranscription);
- // DEBUG: Check if handleAudioTimeUpdate exists
- console.log('handleAudioTimeUpdate from uiComposable:', typeof uiComposable.handleAudioTimeUpdate);
- console.log('toggleFollowPlayerMode from uiComposable:', typeof uiComposable.toggleFollowPlayerMode);
-
- // DEBUG: Watch for when recording changes and check audio element
- watch(selectedRecording, () => {
- nextTick(() => {
- const audioElements = document.querySelectorAll('audio');
- console.log('Audio elements found:', audioElements.length);
- audioElements.forEach((audio, index) => {
- console.log(`Audio ${index}:`, audio);
- console.log(`Audio ${index} has timeupdate listener:`, audio.ontimeupdate);
- // Manually add a test listener
- audio.addEventListener('timeupdate', (e) => {
- console.log('MANUAL timeupdate listener fired!', e.target.currentTime);
- }, { once: true });
- });
- });
- });
-
const groupedRecordings = computed(() => {
const groups = {};
recordings.value.forEach(recording => {
diff --git a/static/js/modules/composables/ui.js b/static/js/modules/composables/ui.js
index 5343f2ca..4bd53834 100644
--- a/static/js/modules/composables/ui.js
+++ b/static/js/modules/composables/ui.js
@@ -848,7 +848,6 @@ export function useUI(state, utils, processedTranscription) {
// Only update if changed
if (activeIndex !== currentPlayingSegmentIndex.value) {
- console.log('Active segment changed:', activeIndex, 'Time:', currentTime);
currentPlayingSegmentIndex.value = activeIndex;
// Scroll to active segment if follow mode is enabled
@@ -859,18 +858,13 @@ export function useUI(state, utils, processedTranscription) {
};
const scrollToActiveSegment = (segmentIndex) => {
- console.log('Scrolling to segment:', segmentIndex);
// Find the active segment element
const segments = document.querySelectorAll('.transcript-segment[data-segment-index], .speaker-segment[data-segment-index], .speaker-bubble[data-segment-index]');
- console.log('Found segments:', segments.length);
if (segments[segmentIndex]) {
- console.log('Scrolling element into view');
segments[segmentIndex].scrollIntoView({
behavior: 'smooth',
block: 'center'
});
- } else {
- console.log('Segment element not found at index:', segmentIndex);
}
};