[sr-dev] git:master:a9c331d7: ndb_redis: set message level to debug on exec

Victor Seva linuxmaniac at torreviejawireless.org
Wed Sep 23 09:03:34 CEST 2020


Module: kamailio
Branch: master
Commit: a9c331d70dbed6827874aa99296203ac5a9d5c7b
URL: https://github.com/kamailio/kamailio/commit/a9c331d70dbed6827874aa99296203ac5a9d5c7b

Author: Victor Seva <linuxmaniac at torreviejawireless.org>
Committer: Victor Seva <linuxmaniac at torreviejawireless.org>
Date: 2020-09-23T09:02:43+02:00

ndb_redis: set message level to debug on exec

* logging error makes no sense here since there's going
  to be a reconnection afterwards

> ERROR: ndb_redis [redis_client.c:903]: redisc_exec_argv(): Redis error: Server closed the connection

---

Modified: src/modules/ndb_redis/redis_client.c

---

Diff:  https://github.com/kamailio/kamailio/commit/a9c331d70dbed6827874aa99296203ac5a9d5c7b.diff
Patch: https://github.com/kamailio/kamailio/commit/a9c331d70dbed6827874aa99296203ac5a9d5c7b.patch

---

diff --git a/src/modules/ndb_redis/redis_client.c b/src/modules/ndb_redis/redis_client.c
index 5bc1bf0e47..15a86f7b10 100644
--- a/src/modules/ndb_redis/redis_client.c
+++ b/src/modules/ndb_redis/redis_client.c
@@ -770,7 +770,7 @@ int redisc_exec_pipelined(redisc_server_t *rsrv)
 		/* null reply, reconnect and try again */
 		if (rsrv->ctxRedis->err)
 		{
-			LM_ERR("Redis error: %s\n", rsrv->ctxRedis->errstr);
+			LM_DBG("Redis error: %s\n", rsrv->ctxRedis->errstr);
 		}
 		if (redisc_create_pipelined_message(rsrv) == 0)
 		{




More information about the sr-dev mailing list