Added data limits monitoring for daily, weekly and monthly
[platform/core/connectivity/stc-manager.git] / src / database / tables / table-statistics.c
index 6f2fe03..6355f60 100755 (executable)
@@ -605,8 +605,7 @@ stc_error_e table_statistics_insert(stc_db_classid_iftype_key *stat_key,
                                    SQLITE_STATIC));
        DB_ACTION(sqlite3_bind_int(stmt, 2, stat->rcv_count));
        DB_ACTION(sqlite3_bind_int(stmt, 3, stat->snd_count));
-       DB_ACTION(sqlite3_bind_int64(stmt, 4,
-                                    (sqlite3_int64)(last_touch_time)));
+       DB_ACTION(sqlite3_bind_int64(stmt, 4, (sqlite3_int64)last_touch_time));
        DB_ACTION(sqlite3_bind_int(stmt, 5, (int)(stat_key->iftype)));
        DB_ACTION(sqlite3_bind_int(stmt, 6, (int)(stat->is_roaming)));
        DB_ACTION(sqlite3_bind_int(stmt, 7, (int)hw_net_protocol_type));
@@ -628,7 +627,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);