Add some logs for debugging 91/299391/2
authorSangyoon Jang <jeremy.jang@samsung.com>
Wed, 27 Sep 2023 06:37:39 +0000 (15:37 +0900)
committerSangyoon Jang <jeremy.jang@samsung.com>
Wed, 11 Oct 2023 05:23:22 +0000 (05:23 +0000)
Change-Id: I140362e33ac24b1de2019fcc743c30b4e582cc77
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
src/server/database/db_handle_provider.cc

index 258862e..8f33241 100644 (file)
@@ -221,6 +221,7 @@ sqlite3* DBHandleProvider::CreateMemoryDBHandle(const std::string& filedb_path,
                                              const std::string& memorydb_path) {
   sqlite3* memorydb = nullptr;
   sqlite3* filedb = nullptr;
+  LOG(INFO) << "Create memory db handle : " << memorydb_path;
   int ret = sqlite3_open_v2(memorydb_path.c_str(), &memorydb,
                             SQLITE_OPEN_READONLY | SQLITE_OPEN_URI, nullptr);
   if (ret != SQLITE_OK) {
@@ -248,6 +249,7 @@ sqlite3* DBHandleProvider::CreateMemoryDBHandle(const std::string& filedb_path,
   sqlite3_backup_step(backup, -1);
   sqlite3_backup_finish(backup);
   sqlite3_close_v2(filedb);
+  LOG(INFO) << "Create memory db handle done";
   return memorydb;
 }
 
@@ -277,7 +279,7 @@ void DBHandleProvider::SetMemoryMode(pid_t pid) {
 
   is_user_memdb_set_ = true;
   is_global_memdb_set_ = true;
-  LOG(DEBUG) << "Set Memory mode : Memory";
+  LOG(INFO) << "Set Memory mode : Memory";
 }
 
 void DBHandleProvider::UnsetMemoryMode(pid_t pid) {