Skip to content

Commit

Permalink
db_redis: log message if failure to get reply
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Nov 19, 2018
1 parent 78225d0 commit cb8d366
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/modules/db_redis/redis_connection.c
Expand Up @@ -394,7 +394,9 @@ void db_redis_consume_replies(km_redis_con_t *con) {
redis_key_t *query;
while (con->append_counter > 0 && con->con && !con->con->err) {
LM_DBG("consuming outstanding reply %u", con->append_counter);
db_redis_get_reply(con, (void**)&reply);
if(db_redis_get_reply(con, (void**)&reply) != REDIS_OK) {
LM_DBG("failure to get the reply\n");
}
if (reply) {
freeReplyObject(reply);
reply = NULL;
Expand Down

0 comments on commit cb8d366

Please sign in to comment.