FIX: remove period backup log

Change-Id: Ia7395bce17e192a0684e1102d119e1e908fa1e5b
This commit is contained in:
chunmao.guo 2024-01-22 09:21:56 +08:00 committed by Lane.Wei
parent 36562eece0
commit 191ab5681f

View File

@ -7842,7 +7842,6 @@ private:
} }
void process_ui_task(Task& t, bool canceled = false) { void process_ui_task(Task& t, bool canceled = false) {
BOOST_LOG_TRIVIAL(info) << "process_ui_task" << t.to_string() << " and interval = " << m_interval;
switch (t.type) { switch (t.type) {
case Backup: { case Backup: {
if (canceled) if (canceled)
@ -7886,12 +7885,12 @@ private:
} }
void process_task(Task& t) { void process_task(Task& t) {
BOOST_LOG_TRIVIAL(info) << "process_task" << t.to_string() << " and interval = " << m_interval;
switch (t.type) { switch (t.type) {
case Backup: case Backup:
// do it in response // do it in response
break; break;
case AddObject: { case AddObject: {
BOOST_LOG_TRIVIAL(info) << "process_task" << t.to_string();
{ {
CNumericLocalesSetter locales_setter; CNumericLocalesSetter locales_setter;
_BBS_3MF_Exporter e; _BBS_3MF_Exporter e;
@ -7901,12 +7900,14 @@ private:
break; break;
} }
case RemoveObject: { case RemoveObject: {
BOOST_LOG_TRIVIAL(info) << "process_task" << t.to_string();
boost::system::error_code ec; boost::system::error_code ec;
boost::filesystem::remove(t.path + "/mesh_" + boost::lexical_cast<std::string>(t.id) + ".xml", ec); boost::filesystem::remove(t.path + "/mesh_" + boost::lexical_cast<std::string>(t.id) + ".xml", ec);
t.type = None; t.type = None;
break; break;
} }
case RemoveBackup: { case RemoveBackup: {
BOOST_LOG_TRIVIAL(info) << "process_task" << t.to_string();
try { try {
boost::system::error_code ec; boost::system::error_code ec;
boost::filesystem::remove(t.path + "/.3mf", ec); boost::filesystem::remove(t.path + "/.3mf", ec);