Remove incorrect error log when no errors present.
An error was logged while starting the fru fault monitor
with no existing error logs, which is not correct.
Resolves openbmc/openbmc#2330
Change-Id: I6b222b45dd99b653443c58d9982d6576f8af0bfa
Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>
diff --git a/fault-monitor/fru-fault-monitor.cpp b/fault-monitor/fru-fault-monitor.cpp
index 4b74462..1988d1b 100644
--- a/fault-monitor/fru-fault-monitor.cpp
+++ b/fault-monitor/fru-fault-monitor.cpp
@@ -209,12 +209,7 @@
mapperResponseMsg.read(mapperResponse);
if (mapperResponse.empty())
{
- using namespace xyz::openbmc_project::Led::Mapper;
- report<ObjectNotFoundErr>(
- ObjectNotFoundError::METHOD_NAME("GetSubTree"),
- ObjectNotFoundError::PATH(MAPPER_OBJ_PATH),
- ObjectNotFoundError::INTERFACE(
- OBJMGR_IFACE));
+ //No errors to process.
return;
}