MT#64566 Adjust log level in Redis dbase from warning to debug

During full table scans, progress messages are currently logged at
warning level. Since these messages are informational and not expected
during normal operation, they are now downgraded to debug level.

Change-Id: I172d0af3f8a6c0307f269c7f8af221c5be4248e8
mr26.1
Alessio Garzi 4 months ago
parent a23d296d19
commit 431d99ba88

@ -50,6 +50,7 @@ sipwise/dlg_get_var_error_more_verbose_on_dlg
sipwise/tlsa_dynamic_linking_libz.patch
sipwise/permissions_consider_db_mode_when_rpc_reload.patch
sipwise/dialog_w_dlg_get_var_no_error_msg.patch
sipwise/redis_dbase_no_error_msg.patch
### Don't just put stuff in any order
### use gbp pq import/export tooling to help maintain patches

@ -0,0 +1,39 @@
--- a/src/modules/db_redis/redis_dbase.c
+++ b/src/modules/db_redis/redis_dbase.c
@@ -1662,11 +1662,11 @@ static int db_redis_perform_query(const
if(!(*keys_count) && do_table_scan) {
if(_n > 0) {
- LM_WARN("performing full table scan on table '%.*s' while doing "
+ LM_DBG("performing full table scan on table '%.*s' while doing "
"the query\n",
CON_TABLE(_h)->len, CON_TABLE(_h)->s);
for(i = 0; i < _n; ++i) {
- LM_WARN(" scan key %d is '%.*s'\n", i, _k[i]->len, _k[i]->s);
+ LM_DBG(" scan key %d is '%.*s'\n", i, _k[i]->len, _k[i]->s);
}
} else {
LM_DBG("loading full table: '%.*s\n", CON_TABLE(_h)->len,
@@ -1854,7 +1854,7 @@ static int db_redis_perform_delete(const
if(!*keys_count && do_table_scan) {
if(!ts_scan_start)
- LM_WARN("performing full table scan on table '%.*s' while "
+ LM_DBG("performing full table scan on table '%.*s' while "
"performing delete\n",
CON_TABLE(_h)->len, CON_TABLE(_h)->s);
else
@@ -2191,11 +2191,11 @@ static int db_redis_perform_update(const
#endif
if(!(*keys_count) && do_table_scan) {
- LM_WARN("performing full table scan on table '%.*s' while performing "
+ LM_DBG("performing full table scan on table '%.*s' while performing "
"update\n",
CON_TABLE(_h)->len, CON_TABLE(_h)->s);
for(i = 0; i < _n; ++i) {
- LM_WARN(" scan key %d is '%.*s'\n", i, _k[i]->len, _k[i]->s);
+ LM_DBG(" scan key %d is '%.*s'\n", i, _k[i]->len, _k[i]->s);
}
if(db_redis_scan_query_keys(con, CON_TABLE(_h), _n, keys, keys_count,
manual_keys, manual_keys_count, ts_scan_start, ts_scan_key,
Loading…
Cancel
Save