boot-block: create d-bus block object on callout
If the QuiesceOnHwError is set and a callout is present in the Entry
then create the new block object and the
xyz.openbmc_project.Logging.ErrorBlocksTransition interface.
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Change-Id: I9aea289ab7cc8dc7649820ff54edc8c04ecb3ef5
diff --git a/log_manager.cpp b/log_manager.cpp
index cf2a795..72a8f3c 100644
--- a/log_manager.cpp
+++ b/log_manager.cpp
@@ -291,7 +291,17 @@
logging::log<logging::level::INFO>(
"QuiesceOnError set and callout present");
+
+ std::string blockPath(OBJ_LOGGING);
+ blockPath += "/block";
+ blockPath += std::to_string(entry.id());
+ auto blockObj =
+ std::make_unique<Block>(this->busLog, blockPath, entry.id());
+ this->blockingErrors.push_back(std::move(blockObj));
+
// TODO in later commit in this series
+ // Call systemd to quiesce host
+ // Ensure blockingErrors removes entries when log resolved
}
void Manager::doExtensionLogCreate(const Entry& entry, const FFDCEntries& ffdc)