From 431d99ba883faaf2b02501faf0ab6163daa36cf0 Mon Sep 17 00:00:00 2001 From: Alessio Garzi Date: Tue, 7 Apr 2026 10:12:02 +0200 Subject: [PATCH] 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 --- debian/patches/series | 1 + .../sipwise/redis_dbase_no_error_msg.patch | 39 +++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 debian/patches/sipwise/redis_dbase_no_error_msg.patch diff --git a/debian/patches/series b/debian/patches/series index 2d7f10b4e..d3920efe3 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -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 diff --git a/debian/patches/sipwise/redis_dbase_no_error_msg.patch b/debian/patches/sipwise/redis_dbase_no_error_msg.patch new file mode 100644 index 000000000..5dc7d9aed --- /dev/null +++ b/debian/patches/sipwise/redis_dbase_no_error_msg.patch @@ -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,