Browse code

ndb_redis: set message level to debug on reconnect

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

Victor Seva authored on 27/11/2020 11:22:52
Showing 1 changed files
... ...
@@ -1011,7 +1011,7 @@ int redisc_exec(str *srv, str *res, str *cmd, ...)
1011 1011
 		/* null reply, reconnect and try again */
1012 1012
 		if(rsrv->ctxRedis->err)
1013 1013
 		{
1014
-			LM_ERR("Redis error: %s\n", rsrv->ctxRedis->errstr);
1014
+			LM_DBG("Redis error: %s\n", rsrv->ctxRedis->errstr);
1015 1015
 		}
1016 1016
 		if(redisc_reconnect_server(rsrv)==0)
1017 1017
 		{
... ...
@@ -1054,7 +1054,7 @@ int redisc_exec(str *srv, str *res, str *cmd, ...)
1054 1054
 			/* null reply, reconnect and try again */
1055 1055
 			if(rsrv->ctxRedis->err)
1056 1056
 			{
1057
-				LM_ERR("Redis error: %s\n", rsrv->ctxRedis->errstr);
1057
+				LM_DBG("Redis error: %s\n", rsrv->ctxRedis->errstr);
1058 1058
 			}
1059 1059
 			if(redisc_reconnect_server(rsrv)==0)
1060 1060
 			{
... ...
@@ -1152,7 +1152,7 @@ again:
1152 1152
 	/* null reply, reconnect and try again */
1153 1153
 	if(rsrv->ctxRedis->err)
1154 1154
 	{
1155
-		LM_ERR("Redis error: %s\n", rsrv->ctxRedis->errstr);
1155
+		LM_DBG("Redis error: %s\n", rsrv->ctxRedis->errstr);
1156 1156
 	}
1157 1157
 
1158 1158
 	if(res)