Skip to content
Commit c81d1129 authored by Manojkiran Eda's avatar Manojkiran Eda Committed by ManojKiran Eda
Browse files

skip creating effecter when its dbus isn't present



In the current state, we attempt to create an effecter PDR even if
the D-Bus object that is being modeled as an effecter is absent at
the time of creation.

However, this behavior may not be beneficial, as assuming that the
D-Bus backend will magically appear later does not necessarily mean
that we will be able to process it, we only process the JSON files
during the first getPDR request. Therefore, it would be more efficient
to skip creating the effecter in the absence of the D-Bus object.

This commit also addresses an error trace by including the dbus object
path when it is not present on the system, rather than the opaque
effecter id number which does not provide contextual information and
may make it harder to diagnose issues.

Change-Id: I84239c75684f611b7985df027a93ba4531f783d0
Signed-off-by: default avatarManojkiran Eda <manojkiran.eda@gmail.com>
parent 819bb6f1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment