logs improved

This commit is contained in:
mic 2024-10-03 19:06:47 +02:00
parent 6dc2638de0
commit c270586071

View file

@ -141,7 +141,8 @@ self.onmessage = async function(event) {
chunk = chunk.substring(chunk.lastIndexOf('\n') + 1);
console.log(">>>>>>>>>>>>>> [ThunderAI] last chunk: " + JSON.stringify(chunk));
}catch(e){
console.error(">>>>>>>>>>>>> [ThunderAI] error: " + JSON.stringify(e));
console.log(">>>>>>>>>>>>>> [ThunderAI] last chunk: " + JSON.stringify(chunk));
console.error(">>>>>>>>>>>>> [ThunderAI] error: " + e);
}
for (const parsedLine of parsedLines) {