responder : Improve tracing to debug problems

Improving the tracing , so that when we see it on journal
we can actually find some thing useful & hopefully be able
to find the root cause of the problem.

Signed-off-by: Manojkiran Eda <manojkiran.eda@gmail.com>
Change-Id: Id589a36db81300f9ca3cc8553a72141865e15a10
diff --git a/libpldmresponder/platform_state_sensor.hpp b/libpldmresponder/platform_state_sensor.hpp
index 53477ff..ce25ee9 100644
--- a/libpldmresponder/platform_state_sensor.hpp
+++ b/libpldmresponder/platform_state_sensor.hpp
@@ -52,7 +52,9 @@
     }
     catch (const std::exception& e)
     {
-        std::cerr << e.what() << '\n';
+        std::cerr << "Get StateSensor EventState from dbus Error, interface : "
+                  << dbusMapping.objectPath.c_str()
+                  << " ,exception : " << e.what() << '\n';
     }
 
     return PLDM_SENSOR_UNKNOWN;