usgin the new logger changeDebug method. fixes #115

This commit is contained in:
mic 2024-08-22 22:32:00 +02:00
parent 9fa8bc50c4
commit d7cef5dceb

View file

@ -142,7 +142,7 @@ messenger.runtime.onMessage.addListener(async (message, sender, sendResponse) =>
async function openChatGPT(promptText, action, curr_tabId, prompt_name = '', do_custom_text = 0) {
let prefs = await browser.storage.sync.get(prefs_default);
taLog = new taLogger("mzta-background",prefs.do_debug);
taLog.changeDebug(prefs.do_debug);
prefs = checkScreenDimensions(prefs);
//console.log(">>>>>>>>>>>>>>>> prefs: " + JSON.stringify(prefs));
taLog.log("[ThunderAI] Prompt length: " + promptText.length);