mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-06-03 10:56:16 +00:00
Logger: huge cleanup
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user