debug: add details on notify failure
There can be more than one service providing this method, therefore
output what service failed, and additionally the path.
Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: I44232418849ac435689a7859aa0baeb3aec5bc90
diff --git a/writefrudata.cpp b/writefrudata.cpp
index 0b70d3f..c1b6c19 100644
--- a/writefrudata.cpp
+++ b/writefrudata.cpp
@@ -290,7 +290,9 @@
}
catch (const sdbusplus::exception::SdBusError& ex)
{
- log<level::ERR>("Error in notify call", entry("WHAT=%s", ex.what()));
+ log<level::ERR>("Error in notify call", entry("WHAT=%s", ex.what()),
+ entry("SERVICE=%s", service.c_str()),
+ entry("PATH=%s", path.c_str()));
return -1;
}