Skip to content

Commit

Permalink
removed some console.log debug statements
Browse files Browse the repository at this point in the history
  • Loading branch information
micz committed Jan 5, 2025
1 parent 947401e commit dc67af1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
8 changes: 4 additions & 4 deletions js/mzta-compose-script.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand All @@ -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 !== '')
Expand All @@ -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');
Expand Down Expand Up @@ -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 });
});

Expand Down
2 changes: 1 addition & 1 deletion js/mzta-menus.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 1 addition & 2 deletions js/special_commands/mzta-add-tags.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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':
Expand Down

0 comments on commit dc67af1

Please sign in to comment.