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

(cherry picked from commit 98805c723fbe01556e56d5b00ffc686b92014847)

Victor Seva authored on 27/11/2020 11:22:52 • Henning Westerholt committed on 21/12/2020 15:17:22
Showing 1 changed files
... ...
@@ -933,7 +933,7 @@ int redisc_exec(str *srv, str *res, str *cmd, ...)
933 933
 		/* null reply, reconnect and try again */
934 934
 		if(rsrv->ctxRedis->err)
935 935
 		{
936
-			LM_ERR("Redis error: %s\n", rsrv->ctxRedis->errstr);
936
+			LM_DBG("Redis error: %s\n", rsrv->ctxRedis->errstr);
937 937
 		}
938 938
 		if(redisc_reconnect_server(rsrv)==0)
939 939
 		{
... ...
@@ -983,7 +983,7 @@ int redisc_exec(str *srv, str *res, str *cmd, ...)
983 983
 			/* null reply, reconnect and try again */
984 984
 			if(rsrv->ctxRedis->err)
985 985
 			{
986
-				LM_ERR("Redis error: %s\n", rsrv->ctxRedis->errstr);
986
+				LM_DBG("Redis error: %s\n", rsrv->ctxRedis->errstr);
987 987
 			}
988 988
 			if(redisc_reconnect_server(rsrv)==0)
989 989
 			{
... ...
@@ -1080,7 +1080,7 @@ again:
1080 1080
 	/* null reply, reconnect and try again */
1081 1081
 	if(rsrv->ctxRedis->err)
1082 1082
 	{
1083
-		LM_ERR("Redis error: %s\n", rsrv->ctxRedis->errstr);
1083
+		LM_DBG("Redis error: %s\n", rsrv->ctxRedis->errstr);
1084 1084
 	}
1085 1085
 
1086 1086
 	if(res)