blob: 10395d8be03912cf54288772d52363575a15f784 [file] [log] [blame]
#include "bmc_dump_entry.hpp"
#include "dump_manager.hpp"
#include <phosphor-logging/log.hpp>
namespace phosphor
{
namespace dump
{
namespace bmc
{
using namespace phosphor::logging;
void Entry::delete_()
{
// Delete Dump file from Permanent location
try
{
fs::remove_all(file.parent_path());
}
catch (fs::filesystem_error& e)
{
// Log Error message and continue
log<level::ERR>(e.what());
}
// Remove Dump entry D-bus object
phosphor::dump::Entry::delete_();
}
} // namespace bmc
} // namespace dump
} // namespace phosphor