Skip to content
Commit 819bb6f1 authored by Manojkiran Eda's avatar Manojkiran Eda
Browse files

skip creating sensors when its dbus is not present



In the current state, we attempt to create a sensor PDR even if the
D-Bus object that is being modeled as a sensor 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 and send sensor events, since we
only process the JSON files only during the first getPDR request.
Therefore, it would be more efficient to skip creating a sensor during
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 sensor
id number which does not provide contextual information and may make it
harder to diagnose issues.

Change-Id: I5747319f15c212ab6654b9d7accfce28782c9565
Signed-off-by: default avatarManojkiran Eda <manojkiran.eda@gmail.com>
parent a410c658
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