1 #include "elog_entry.hpp" 2 #include "log_manager.hpp" 3 #include "elog_serialize.hpp" 4 5 namespace phosphor 6 { 7 namespace logging 8 { 9 10 // TODO Add interfaces to handle the error log id numbering 11 12 void Entry::delete_() 13 { 14 parent.erase(id()); 15 } 16 17 bool Entry::resolved(bool value) 18 { 19 auto current = sdbusplus::xyz::openbmc_project:: 20 Logging::server::Entry::resolved(); 21 if (value != current) 22 { 23 value ? 24 associations({}) : 25 associations(assocs); 26 current = sdbusplus::xyz::openbmc_project:: 27 Logging::server::Entry::resolved(value); 28 serialize(*this); 29 } 30 31 return current; 32 } 33 34 } // namespace logging 35 } // namepsace phosphor 36