When an error occurs in executing a Lua script, the log is printed as error (#3502)
Co-authored-by: huangyb <huangyb@akulaku.com>
This commit is contained in:
@@ -253,9 +253,7 @@ public class RedisRateLimiter extends AbstractRateLimiter<RedisRateLimiter.Confi
|
||||
Flux<List<Long>> flux = this.redisTemplate.execute(this.script, keys, scriptArgs);
|
||||
// .log("redisratelimiter", Level.FINER);
|
||||
return flux.onErrorResume(throwable -> {
|
||||
if (log.isDebugEnabled()) {
|
||||
log.debug("Error calling rate limiter lua", throwable);
|
||||
}
|
||||
log.error("Error calling rate limiter lua", throwable);
|
||||
return Flux.just(Arrays.asList(1L, -1L));
|
||||
}).reduce(new ArrayList<Long>(), (longs, l) -> {
|
||||
longs.addAll(l);
|
||||
|
||||
Reference in New Issue
Block a user