just add some debug msg to check abnormal status 72/197172/1
authorhj kim <backto.kim@samsung.com>
Thu, 10 Jan 2019 07:00:57 +0000 (16:00 +0900)
committerhj kim <backto.kim@samsung.com>
Thu, 10 Jan 2019 07:00:57 +0000 (16:00 +0900)
Change-Id: Ib68283e122117e87aa7bbc56035553ed7ab4331a

src/media_controller_db.c

index 987cf50..2ca1ab2 100755 (executable)
@@ -1000,10 +1000,12 @@ int mc_db_check_server_table_exist(void *handle, const char *server_name, bool *
 
        mc_debug("table count [%d]", count);
 
-       if (count > 0)
+       if (count > 0) {
                *exist = TRUE;
-       else
+       } else {
+               mc_debug("server info is not exist [%s]", server_name);
                *exist = FALSE;
+       }
 
        SQLITE3_FINALIZE(stmt);
        SQLITE3_SAFE_FREE(sql_str);
@@ -1044,10 +1046,12 @@ int mc_db_check_client_table_exist(void *handle, const char *client_name, bool *
 
        mc_debug("table count [%d]", count);
 
-       if (count > 0)
+       if (count > 0) {
                *exist = TRUE;
-       else
+       } else {
+               mc_debug("client info is not exist [%s]", client_name);
                *exist = FALSE;
+       }
 
        SQLITE3_FINALIZE(stmt);
        SQLITE3_SAFE_FREE(sql_str);