OSDN Git Service

logging処理の追加
[gikomona/libcore.git] / src / GikoMona.cpp
index 7358ff9..e9e65f8 100644 (file)
@@ -44,7 +44,7 @@ namespace {
 
 std::shared_ptr<model> app_model;
 std::shared_ptr<extension> app_extension;
-std::shared_ptr<communication::post_office> app_postoffice;
+//std::shared_ptr<communication::post_office> app_postoffice;
 
 }
 
@@ -75,7 +75,7 @@ bool init_core(const mona_string& app_name) {
     
     app_model = std::make_shared<model>();
     app_extension = std::make_shared<extension>();
-    app_postoffice = std::make_shared<communication::post_office>(app_name);
+    //app_postoffice = std::make_shared<communication::post_office>(app_name);
     
     return true;
 }
@@ -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);