remove is_method_error call
An `is_method_error` is not appropriate after an sdbus `call` since
`call` will always throw an exception. Remove the pointless call
and instead catch the exception.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: If6161ee646bc0634c7ed4ad31437bd039a849b68
diff --git a/ecc_manager.cpp b/ecc_manager.cpp
index 0f09442..70626cb 100644
--- a/ecc_manager.cpp
+++ b/ecc_manager.cpp
@@ -285,11 +285,7 @@
"xyz.openbmc_project.Logging.IPMI", "IpmiSelAdd");
selCall.append(message, path, selData, assert, genId);
- auto selReply = _bus.call(selCall);
- if (selReply.is_method_error())
- {
- log<level::ERR>("add SEL log error\n");
- }
+ _bus.call(selCall);
}
} // namespace memory