Browse code

db_redis: log message if failure to get reply

Daniel-Constantin Mierla authored on 19/11/2018 08:19:58
Showing 1 changed files
... ...
@@ -394,7 +394,9 @@ void db_redis_consume_replies(km_redis_con_t *con) {
394 394
     redis_key_t *query;
395 395
     while (con->append_counter > 0 && con->con && !con->con->err) {
396 396
         LM_DBG("consuming outstanding reply %u", con->append_counter);
397
-        db_redis_get_reply(con, (void**)&reply);
397
+        if(db_redis_get_reply(con, (void**)&reply) != REDIS_OK) {
398
+            LM_DBG("failure to get the reply\n");
399
+        }
398 400
         if (reply) {
399 401
             freeReplyObject(reply);
400 402
             reply = NULL;