log instead of exception in dispatcher
diff --git a/src/dispatcher.cc b/src/dispatcher.cc
index a4000d8..22d1830 100644
--- a/src/dispatcher.cc
+++ b/src/dispatcher.cc
@@ -132,7 +132,9 @@
filesystem::path absolutePath = m_rootDir / relativeFilePath;
if (!filesystem::exists(absolutePath))
{
- BOOST_THROW_EXCEPTION (Error::Dispatcher() << error_info_str("Update non exist file: " + absolutePath.string() ));
+ //BOOST_THROW_EXCEPTION (Error::Dispatcher() << error_info_str("Update non exist file: " + absolutePath.string() ));
+ _LOG_DEBUG("Update non exist file: " << absolutePath.string());
+ return;
}
FileItemPtr currentFile = m_actionLog->LookupFile (relativeFilePath.generic_string ());
@@ -172,7 +174,10 @@
filesystem::path absolutePath = m_rootDir / relativeFilePath;
if (!filesystem::exists(absolutePath))
{
- BOOST_THROW_EXCEPTION (Error::Dispatcher() << error_info_str("Delete notification but file exists: " + absolutePath.string() ));
+ //BOOST_THROW_EXCEPTION (Error::Dispatcher() << error_info_str("Delete notification but file exists: " + absolutePath.string() ));
+ _LOG_DEBUG("Update non exist file: " << absolutePath.string());
+ return;
+
}
FileItemPtr currentFile = m_actionLog->LookupFile (relativeFilePath.generic_string ());