From bbed147ce52785db07328893325a243bbcb6a65c Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Tue, 5 Sep 2023 18:23:24 +0300 Subject: [PATCH] Clean up browser logs --- public/script.js | 2 +- public/scripts/PromptManager.js | 3 --- public/scripts/RossAscends-mods.js | 4 ++-- public/scripts/extensions/tts/edge.js | 2 +- public/scripts/extensions/tts/elevenlabs.js | 2 +- public/scripts/extensions/tts/novel.js | 2 +- public/scripts/extensions/tts/silerotts.js | 2 +- public/scripts/extensions/tts/system.js | 2 +- 8 files changed, 8 insertions(+), 11 deletions(-) diff --git a/public/script.js b/public/script.js index 022fef5fb..7ee5db7f9 100644 --- a/public/script.js +++ b/public/script.js @@ -3050,7 +3050,7 @@ async function Generate(type, { automatic_trigger, force_name2, resolve, reject, //console.log(thisPromptBits); itemizedPrompts.push(thisPromptBits); - console.log(`pushed prompt bits to itemizedPrompts array. Length is now: ${itemizedPrompts.length}`); + console.debug(`pushed prompt bits to itemizedPrompts array. Length is now: ${itemizedPrompts.length}`); if (main_api == 'openai') { if (isStreamingEnabled() && type !== 'quiet') { diff --git a/public/scripts/PromptManager.js b/public/scripts/PromptManager.js index 7c25aeee4..765def9e2 100644 --- a/public/scripts/PromptManager.js +++ b/public/scripts/PromptManager.js @@ -1375,9 +1375,6 @@ PromptManagerModule.prototype.renderPromptManagerListItems = function () { `; - console.log(this.activeCharacter) - console.log(this.serviceSettings) -console.log(this.getPromptsForCharacter(this.activeCharacter)) this.getPromptsForCharacter(this.activeCharacter).forEach(prompt => { if (!prompt) return; diff --git a/public/scripts/RossAscends-mods.js b/public/scripts/RossAscends-mods.js index cb56694ee..5598010b9 100644 --- a/public/scripts/RossAscends-mods.js +++ b/public/scripts/RossAscends-mods.js @@ -450,9 +450,9 @@ export function dragElement(elmnt) { topbar, topbarWidth, topBarFirstX, topBarLastX, topBarLastY, sheldWidth; var elmntName = elmnt.attr('id'); - console.log(`dragElement called for ${elmntName}`); + console.debug(`dragElement called for ${elmntName}`); const elmntNameEscaped = $.escapeSelector(elmntName); - console.log(`dragElement escaped name: ${elmntNameEscaped}`); + console.debug(`dragElement escaped name: ${elmntNameEscaped}`); const elmntHeader = $(`#${elmntNameEscaped}header`); if (elmntHeader.length) { diff --git a/public/scripts/extensions/tts/edge.js b/public/scripts/extensions/tts/edge.js index f8d8cf10a..262ecf4a8 100644 --- a/public/scripts/extensions/tts/edge.js +++ b/public/scripts/extensions/tts/edge.js @@ -56,7 +56,7 @@ class EdgeTtsProvider { $('#edge_tts_rate').on("input", () => {this.onSettingsChange()}) await this.checkReady() - console.info("Settings loaded") + console.debug("EdgeTTS: Settings loaded") } diff --git a/public/scripts/extensions/tts/elevenlabs.js b/public/scripts/extensions/tts/elevenlabs.js index 908251d21..b7f7dc74a 100644 --- a/public/scripts/extensions/tts/elevenlabs.js +++ b/public/scripts/extensions/tts/elevenlabs.js @@ -74,7 +74,7 @@ class ElevenLabsTtsProvider { $('#elevenlabs_tts_settings').on('input',this.onSettingsChange) await this.checkReady() - console.info("Settings loaded") + console.debug("ElevenLabs: Settings loaded") } // Perform a simple readiness check by trying to fetch voiceIds diff --git a/public/scripts/extensions/tts/novel.js b/public/scripts/extensions/tts/novel.js index 83804e5e2..fb58ffffb 100644 --- a/public/scripts/extensions/tts/novel.js +++ b/public/scripts/extensions/tts/novel.js @@ -92,7 +92,7 @@ class NovelTtsProvider { this.populateCustomVoices() await this.checkReady() - console.info("Settings loaded") + console.debug("NovelTTS: Settings loaded") } // Perform a simple readiness check by trying to fetch voiceIds diff --git a/public/scripts/extensions/tts/silerotts.js b/public/scripts/extensions/tts/silerotts.js index 857d5ddc6..8d9120f08 100644 --- a/public/scripts/extensions/tts/silerotts.js +++ b/public/scripts/extensions/tts/silerotts.js @@ -67,7 +67,7 @@ class SileroTtsProvider { await this.checkReady() - console.info("Settings loaded") + console.debug("SileroTTS: Settings loaded") } // Perform a simple readiness check by trying to fetch voiceIds diff --git a/public/scripts/extensions/tts/system.js b/public/scripts/extensions/tts/system.js index 0a9b237ee..79a7eb077 100644 --- a/public/scripts/extensions/tts/system.js +++ b/public/scripts/extensions/tts/system.js @@ -151,7 +151,7 @@ class SystemTtsProvider { $('#system_tts_pitch_output').text(this.settings.pitch); $('#system_tts_rate_output').text(this.settings.rate); - console.info("Settings loaded"); + console.debug("SystemTTS: Settings loaded"); } // Perform a simple readiness check by trying to fetch voiceIds