scripts: use log topics
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user