Improvement for logs in executeScript
This commit is contained in:
parent
b5ca7e655f
commit
f4372feff9
@ -286,13 +286,13 @@ public abstract class RedisTbTransactionalCache<K extends Serializable, V extend
|
|||||||
protected void executeScript(RedisConnection connection, byte[] scriptSha, byte[] luaScript, ReturnType returnType, int numKeys, byte[]... keysAndArgs) {
|
protected void executeScript(RedisConnection connection, byte[] scriptSha, byte[] luaScript, ReturnType returnType, int numKeys, byte[]... keysAndArgs) {
|
||||||
try {
|
try {
|
||||||
connection.scriptingCommands().evalSha(scriptSha, returnType, numKeys, keysAndArgs);
|
connection.scriptingCommands().evalSha(scriptSha, returnType, numKeys, keysAndArgs);
|
||||||
} catch (InvalidDataAccessApiUsageException exception) {
|
} catch (InvalidDataAccessApiUsageException ignored) {
|
||||||
log.warn("Loading LUA [{}]", connection.getNativeConnection(), exception);
|
log.debug("Loading LUA [{}]", connection.getNativeConnection());
|
||||||
connection.scriptingCommands().scriptLoad(luaScript);
|
connection.scriptingCommands().scriptLoad(luaScript);
|
||||||
try {
|
try {
|
||||||
connection.scriptingCommands().evalSha(scriptSha, returnType, numKeys, keysAndArgs);
|
connection.scriptingCommands().evalSha(scriptSha, returnType, numKeys, keysAndArgs);
|
||||||
} catch (InvalidDataAccessApiUsageException ex) {
|
} catch (InvalidDataAccessApiUsageException exception) {
|
||||||
log.warn("Slowly executing eval instead of fast evalSha", ex);
|
log.warn("Slowly executing eval instead of fast evalSha", exception);
|
||||||
connection.scriptingCommands().eval(luaScript, returnType, numKeys, keysAndArgs);
|
connection.scriptingCommands().eval(luaScript, returnType, numKeys, keysAndArgs);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user