Clean up browser logs

This commit is contained in:
Cohee 2023-09-05 18:23:24 +03:00
parent 5ef79bd64d
commit bbed147ce5
8 changed files with 8 additions and 11 deletions

View File

@ -3050,7 +3050,7 @@ async function Generate(type, { automatic_trigger, force_name2, resolve, reject,
//console.log(thisPromptBits); //console.log(thisPromptBits);
itemizedPrompts.push(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 (main_api == 'openai') {
if (isStreamingEnabled() && type !== 'quiet') { if (isStreamingEnabled() && type !== 'quiet') {

View File

@ -1375,9 +1375,6 @@ PromptManagerModule.prototype.renderPromptManagerListItems = function () {
</li> </li>
`; `;
console.log(this.activeCharacter)
console.log(this.serviceSettings)
console.log(this.getPromptsForCharacter(this.activeCharacter))
this.getPromptsForCharacter(this.activeCharacter).forEach(prompt => { this.getPromptsForCharacter(this.activeCharacter).forEach(prompt => {
if (!prompt) return; if (!prompt) return;

View File

@ -450,9 +450,9 @@ export function dragElement(elmnt) {
topbar, topbarWidth, topBarFirstX, topBarLastX, topBarLastY, sheldWidth; topbar, topbarWidth, topBarFirstX, topBarLastX, topBarLastY, sheldWidth;
var elmntName = elmnt.attr('id'); var elmntName = elmnt.attr('id');
console.log(`dragElement called for ${elmntName}`); console.debug(`dragElement called for ${elmntName}`);
const elmntNameEscaped = $.escapeSelector(elmntName); const elmntNameEscaped = $.escapeSelector(elmntName);
console.log(`dragElement escaped name: ${elmntNameEscaped}`); console.debug(`dragElement escaped name: ${elmntNameEscaped}`);
const elmntHeader = $(`#${elmntNameEscaped}header`); const elmntHeader = $(`#${elmntNameEscaped}header`);
if (elmntHeader.length) { if (elmntHeader.length) {

View File

@ -56,7 +56,7 @@ class EdgeTtsProvider {
$('#edge_tts_rate').on("input", () => {this.onSettingsChange()}) $('#edge_tts_rate').on("input", () => {this.onSettingsChange()})
await this.checkReady() await this.checkReady()
console.info("Settings loaded") console.debug("EdgeTTS: Settings loaded")
} }

View File

@ -74,7 +74,7 @@ class ElevenLabsTtsProvider {
$('#elevenlabs_tts_settings').on('input',this.onSettingsChange) $('#elevenlabs_tts_settings').on('input',this.onSettingsChange)
await this.checkReady() await this.checkReady()
console.info("Settings loaded") console.debug("ElevenLabs: Settings loaded")
} }
// Perform a simple readiness check by trying to fetch voiceIds // Perform a simple readiness check by trying to fetch voiceIds

View File

@ -92,7 +92,7 @@ class NovelTtsProvider {
this.populateCustomVoices() this.populateCustomVoices()
await this.checkReady() await this.checkReady()
console.info("Settings loaded") console.debug("NovelTTS: Settings loaded")
} }
// Perform a simple readiness check by trying to fetch voiceIds // Perform a simple readiness check by trying to fetch voiceIds

View File

@ -67,7 +67,7 @@ class SileroTtsProvider {
await this.checkReady() await this.checkReady()
console.info("Settings loaded") console.debug("SileroTTS: Settings loaded")
} }
// Perform a simple readiness check by trying to fetch voiceIds // Perform a simple readiness check by trying to fetch voiceIds

View File

@ -151,7 +151,7 @@ class SystemTtsProvider {
$('#system_tts_pitch_output').text(this.settings.pitch); $('#system_tts_pitch_output').text(this.settings.pitch);
$('#system_tts_rate_output').text(this.settings.rate); $('#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 // Perform a simple readiness check by trying to fetch voiceIds