OSDN Git Service

logging処理の追加 master
authorcaprice <caprice@users.sourceforge.jp>
Sun, 10 Aug 2014 12:54:48 +0000 (21:54 +0900)
committercaprice <caprice@users.sourceforge.jp>
Sun, 10 Aug 2014 12:54:48 +0000 (21:54 +0900)
src/GikoMona.cpp

index 46ab8df..e9e65f8 100644 (file)
@@ -96,7 +96,7 @@ void optimize_database(const boost::filesystem::path& db_path) {
     mona_string sql(u8"SELECT counts-of-deleting-value FROM file-information;");
     auto count = sqlite::execute_statement<int>(db, sql, ec);
 
-    if(!count) { /* log */ }
+    if(!count) { WARNING("libsqlitexx '" << ec.message() << "'"); }
     
     if(count->at<0>(0) >= 1000) {
         db.optimize(ec);