WIP. Logger for every modules

This commit is contained in:
emeric
2014-08-27 21:25:02 +02:00
parent 6afc4ac291
commit 07624995e7
42 changed files with 292 additions and 223 deletions
+3 -1
View File
@@ -3,6 +3,8 @@
#include <boost/crc.hpp> // for boost::crc_32_type
#include "logger/Logger.hpp"
#include "Checksum.hpp"
typedef boost::crc_32_type crc_type;
@@ -26,7 +28,7 @@ void computeCrc(const boost::filesystem::path& p, std::vector<unsigned char>& cr
}
else
{
std::cerr << "Failed to open file '" << p << "'" << std::endl;
LMS_LOG(MOD_DBUPDATER, SEV_ERROR) << "Failed to open file '" << p << "'";
throw std::runtime_error("Failed to open file '" + p.string() + "'" );
}