blob: e5d9c8511d5687bc725bd07ccaf6ec14b58604a4 [file] [log] [blame]
#include "faultlog_dump_entry.hpp"
#include <phosphor-logging/lg2.hpp>
#include <phosphor-logging/log.hpp>
namespace phosphor
{
namespace dump
{
namespace faultlog
{
using namespace phosphor::logging;
void Entry::delete_()
{
lg2::info("In faultlog_dump_entry.cpp delete_()");
// Delete Dump file from Permanent location
try
{
std::filesystem::remove(file);
}
catch (const std::filesystem::filesystem_error& e)
{
// Log Error message and continue
lg2::error("Failed to delete dump file, errormsg: {ERROR}", "ERROR", e);
}
// Remove Dump entry D-bus object
phosphor::dump::Entry::delete_();
}
} // namespace faultlog
} // namespace dump
} // namespace phosphor