From dc67af1fe68d961dcde5a810e9e205cd6ce570f9 Mon Sep 17 00:00:00 2001 From: mic Date: Mon, 6 Jan 2025 00:52:26 +0100 Subject: [PATCH] removed some console.log debug statements --- js/mzta-compose-script.js | 8 ++++---- js/mzta-menus.js | 2 +- js/special_commands/mzta-add-tags.js | 3 +-- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/js/mzta-compose-script.js b/js/mzta-compose-script.js index 28ade65a..eebbd4af 100644 --- a/js/mzta-compose-script.js +++ b/js/mzta-compose-script.js @@ -342,7 +342,7 @@ switch (message.command) { // Parse the input string into labels const words = inputString.split(',').map(word => word.trim()).filter(word => word !== ''); - console.log(">>>>>>>>>>>>> words: " + JSON.stringify(words)); + // console.log(">>>>>>>>>>>>> words: " + JSON.stringify(words)); if(words.length == 0){ const message = document.createElement('div'); @@ -355,7 +355,7 @@ switch (message.command) { let prefs_tags = await browser.storage.sync.get({add_tags_hide_exclusions: false}); let add_tags_exclusions_list = await addTags_getExclusionList(); - console.log(">>>>>>>>>>>>> add_tags_exclusions_list: " + JSON.stringify(add_tags_exclusions_list)); + // console.log(">>>>>>>>>>>>> add_tags_exclusions_list: " + JSON.stringify(add_tags_exclusions_list)); const words_final = words .filter(word => word !== '') @@ -370,7 +370,7 @@ switch (message.command) { }; }); - console.log(">>>>>>>>>>>>> words_final: " + JSON.stringify(words_final)); + // console.log(">>>>>>>>>>>>> words_final: " + JSON.stringify(words_final)); // Create the form const form = document.createElement('form'); @@ -489,7 +489,7 @@ switch (message.command) { } return createDialog(message.tags, (selected) => { - console.log('>>>>>>>>>>>> Selected tags:', selected); + // console.log('>>>>>>>>>>>> Selected tags:', selected); browser.runtime.sendMessage({ command: "assign_tags", tags: selected, messageId: message.messageId }); }); diff --git a/js/mzta-menus.js b/js/mzta-menus.js index cbb251ad..77050a69 100644 --- a/js/mzta-menus.js +++ b/js/mzta-menus.js @@ -235,7 +235,7 @@ export class mzta_Menus { return {ok:'0'}; } this.logger.log("tags_current_email: " + tags_current_email); - console.log(">>>>>>>>>>>> tags_full_list: " + JSON.stringify(tags_full_list)); + this.logger.log("tags_full_list: " + JSON.stringify(tags_full_list)); browser.tabs.sendMessage(tabs[0].id, {command: "getTags", tags: tags_current_email, messageId: curr_message.id}); return {ok:'1'}; break; diff --git a/js/special_commands/mzta-add-tags.js b/js/special_commands/mzta-add-tags.js index 7cfa422d..603dd2c9 100644 --- a/js/special_commands/mzta-add-tags.js +++ b/js/special_commands/mzta-add-tags.js @@ -60,7 +60,6 @@ } case "openai_comp_api": { let prefs_api = await browser.storage.sync.get({openai_comp_host: '', openai_comp_model: '', openai_comp_api_key: '', openai_comp_use_v1: true, openai_comp_chat_name: '', do_debug: false}); - console.log(">>>>>>>>>>>> [ThunderAI] prefs_api: " + JSON.stringify(prefs_api)); this.worker.postMessage({ type: 'init', openai_comp_host: prefs_api.openai_comp_host, openai_comp_model: prefs_api.openai_comp_model, openai_comp_api_key: prefs_api.openai_comp_api_key, openai_comp_use_v1: prefs_api.openai_comp_use_v1, do_debug: this.do_debug, i18nStrings: ''}); break; } @@ -80,7 +79,7 @@ this.full_message += payload.token; break; case 'tokensDone': - console.log(">>>>>>>>>>>> [ThunderAI] tokensDone: " + this.full_message); + this.logger.log("tokensDone: " + this.full_message); resolve(this.full_message); // Resolve the promise with the full message break; case 'error':