Logger: huge cleanup

This commit is contained in:
lysec
2025-10-16 15:07:11 +02:00
parent fca8d7a10e
commit 838491ba33
67 changed files with 372 additions and 376 deletions
+2 -2
View File
@@ -44,11 +44,11 @@ Item {
function enqueueToast(toastData) {
// Safe logging - fix the substring bug
var descPreview = (toastData.description || "").substring(0, 100).replace(/\n/g, " ")
Logger.log("ToastScreen", "Queuing", toastData.type, ":", toastData.message, descPreview)
Logger.i("ToastScreen", "Queuing", toastData.type, ":", toastData.message, descPreview)
// Bounded queue to prevent unbounded memory growth
if (messageQueue.length >= maxQueueSize) {
Logger.log("ToastScreen", "Queue full, dropping oldest toast")
Logger.i("ToastScreen", "Queue full, dropping oldest toast")
messageQueue.shift()
}