1 #include <phosphor-logging/log.hpp> 2 3 #include "dump_entry.hpp" 4 #include "dump_manager.hpp" 5 6 namespace phosphor 7 { 8 namespace dump 9 { 10 11 using namespace phosphor::logging; 12 13 void Entry::delete_() 14 { 15 //Delete Dump file from Permanent location 16 try 17 { 18 fs::remove_all(file.parent_path()); 19 } 20 catch (fs::filesystem_error& e) 21 { 22 //Log Error message and continue 23 log<level::ERR>(e.what()); 24 } 25 26 // Remove Dump entry D-bus object 27 parent.erase(id); 28 } 29 30 } // namespace dump 31 } // namepsace phosphor 32