Organize log for print tree
[platform/core/connectivity/stc-manager.git] / src / database / tables / table-statistics.c
index 6f2fe03..436c55d 100755 (executable)
@@ -628,7 +628,8 @@ stc_error_e table_statistics_insert(stc_db_classid_iftype_key *stat_key,
                goto handle_error; //LCOV_EXCL_LINE
        }
 
-       STC_LOGD("App stat recorded [%s]", stat->app_id);
+       if (STC_DEBUG_LOG)
+               STC_LOGD("App stat recorded [%s]", stat->app_id);
 
 handle_error:
        sqlite3_reset(stmt);