From: Sangyoon Jang Date: Wed, 27 Sep 2023 06:37:39 +0000 (+0900) Subject: Add some logs for debugging X-Git-Tag: accepted/tizen/unified/20231018.120816~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;ds=sidebyside;h=1c5e50b34d86c714ba0fc1235e7ba25b2a586dd2;p=platform%2Fcore%2Fappfw%2Fpkgmgr-info.git Add some logs for debugging Change-Id: I140362e33ac24b1de2019fcc743c30b4e582cc77 Signed-off-by: Sangyoon Jang --- diff --git a/src/server/database/db_handle_provider.cc b/src/server/database/db_handle_provider.cc index 258862e..8f33241 100644 --- a/src/server/database/db_handle_provider.cc +++ b/src/server/database/db_handle_provider.cc @@ -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) {