Module: kamailio
Branch: master
Commit: 72889e945041b6475a43c371aa4e20e99f5d1240
URL:
https://github.com/kamailio/kamailio/commit/72889e945041b6475a43c371aa4e20e…
Author: Thomas <1258170+ThomasSevestre(a)users.noreply.github.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-09-18T09:57:55+02:00
topos_redis : show redis error for post mortem analysis
---
Modified: src/modules/topos_redis/topos_redis_storage.c
---
Diff:
https://github.com/kamailio/kamailio/commit/72889e945041b6475a43c371aa4e20e…
Patch:
https://github.com/kamailio/kamailio/commit/72889e945041b6475a43c371aa4e20e…
---
diff --git a/src/modules/topos_redis/topos_redis_storage.c
b/src/modules/topos_redis/topos_redis_storage.c
index 8009d8a006d..dd4ce1b7674 100644
--- a/src/modules/topos_redis/topos_redis_storage.c
+++ b/src/modules/topos_redis/topos_redis_storage.c
@@ -677,6 +677,9 @@ int tps_redis_load_initial_method_branch(
if(rrpl->type != REDIS_REPLY_ARRAY) {
LM_WARN("invalid redis result type: %d\n", rrpl->type);
+ if(rrpl->type == REDIS_REPLY_ERROR) {
+ LM_ERR("Redis error:%s\n", rrpl->str);
+ }
freeReplyObject(rrpl);
return -1;
}
@@ -832,6 +835,9 @@ int tps_redis_load_branch(
if(rrpl->type != REDIS_REPLY_ARRAY) {
LM_WARN("invalid redis result type: %d\n", rrpl->type);
+ if(rrpl->type == REDIS_REPLY_ERROR) {
+ LM_ERR("Redis error:%s\n", rrpl->str);
+ }
freeReplyObject(rrpl);
return -1;
}
@@ -1037,6 +1043,9 @@ int tps_redis_load_dialog(sip_msg_t *msg, tps_data_t *md, tps_data_t
*sd)
if(rrpl->type != REDIS_REPLY_ARRAY) {
LM_WARN("invalid redis result type: %d\n", rrpl->type);
+ if(rrpl->type == REDIS_REPLY_ERROR) {
+ LM_ERR("Redis error:%s\n", rrpl->str);
+ }
freeReplyObject(rrpl);
return -1;
}