scripts: use log topics

This commit is contained in:
George Kiagiadakis
2023-05-19 20:12:08 +03:00
parent 9e09f4e221
commit 982bebe5aa
37 changed files with 168 additions and 122 deletions

View File

@@ -6,6 +6,7 @@
-- SPDX-License-Identifier: MIT
local cutils = require ("common-utils")
log = Log.open_topic ("s-monitors")
local defaults = {}
defaults.properties = Json.Object {}
@@ -139,7 +140,7 @@ function createDevice(parent, id, type, factory, properties)
device:activate(Feature.SpaDevice.ENABLED | Feature.Proxy.BOUND)
parent:store_managed_object(id, device)
else
Log.warning ("Failed to create '" .. factory .. "' device")
log:warning ("Failed to create '" .. factory .. "' device")
end
end
@@ -148,5 +149,5 @@ if monitor then
monitor:connect("create-object", createDevice)
monitor:activate(Feature.SpaDevice.ENABLED)
else
Log.notice("PipeWire's libcamera SPA missing or broken. libcamera not supported.")
log:notice("PipeWire's libcamera SPA missing or broken. libcamera not supported.")
end