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