blob: 74fcc4b7d70d4c8f4f95fe985661c11505229e63 [file] [log] [blame]
#include "elog_entry.hpp"
#include "log_manager.hpp"
#include "elog_serialize.hpp"
namespace phosphor
{
namespace logging
{
// TODO Add interfaces to handle the error log id numbering
void Entry::delete_()
{
parent.erase(id());
}
bool Entry::resolved(bool value)
{
auto current = sdbusplus::xyz::openbmc_project::
Logging::server::Entry::resolved();
if (value != current)
{
value ?
associations({}) :
associations(assocs);
current = sdbusplus::xyz::openbmc_project::
Logging::server::Entry::resolved(value);
serialize(*this);
}
return current;
}
} // namespace logging
} // namepsace phosphor