mirror of https://github.com/sipwise/kamailio.git
* logging error makes no sense here since there's going to be a reconnection afterwards Change-Id: Iba7cec260fc32cf4cafc8e22b719a6c77d57b07cmr9.2
parent
8d5284245d
commit
6e835bd588
@ -0,0 +1,45 @@
|
||||
From 98805c723fbe01556e56d5b00ffc686b92014847 Mon Sep 17 00:00:00 2001
|
||||
From: Victor Seva <linuxmaniac@torreviejawireless.org>
|
||||
Date: Fri, 27 Nov 2020 12:22:52 +0100
|
||||
Subject: [PATCH] ndb_redis: set message level to debug on reconnect
|
||||
|
||||
* logging error makes no sense here since there's going
|
||||
to be a reconnection afterwards
|
||||
---
|
||||
src/modules/ndb_redis/redis_client.c | 6 +++---
|
||||
1 file changed, 3 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/src/modules/ndb_redis/redis_client.c b/src/modules/ndb_redis/redis_client.c
|
||||
index 15a86f7b10..42880310f2 100644
|
||||
--- a/src/modules/ndb_redis/redis_client.c
|
||||
+++ b/src/modules/ndb_redis/redis_client.c
|
||||
@@ -1011,7 +1011,7 @@ int redisc_exec(str *srv, str *res, str *cmd, ...)
|
||||
/* 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_reconnect_server(rsrv)==0)
|
||||
{
|
||||
@@ -1054,7 +1054,7 @@ int redisc_exec(str *srv, str *res, str *cmd, ...)
|
||||
/* 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_reconnect_server(rsrv)==0)
|
||||
{
|
||||
@@ -1152,7 +1152,7 @@ again:
|
||||
/* 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(res)
|
||||
--
|
||||
2.20.1
|
||||
|
||||
Loading…
Reference in new issue