mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-05-31 17:54:41 +00:00
Cava: added debug log
This commit is contained in:
@@ -43,10 +43,12 @@ Singleton {
|
||||
Logger.d("Cava", "Process running:", running)
|
||||
}
|
||||
onExited: {
|
||||
Logger.i("Cava", "Process exited")
|
||||
stdinEnabled = true
|
||||
values = Array(barsCount).fill(0)
|
||||
}
|
||||
onStarted: {
|
||||
Logger.i("Cava", "Process started")
|
||||
for (const k in config) {
|
||||
if (typeof config[k] !== "object") {
|
||||
write(k + "=" + config[k] + "\n")
|
||||
@@ -66,5 +68,12 @@ Singleton {
|
||||
root.values = data.slice(0, -1).split(";").map(v => parseInt(v, 10) / 100)
|
||||
}
|
||||
}
|
||||
stderr: StdioCollector {
|
||||
onStreamFinished: {
|
||||
if (text.trim()) {
|
||||
Logger.w("Cava", "Error", text)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user