summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMeir Shpilraien (Spielrein) <meir@redis.com>2022-05-26 16:11:24 +0300
committerGitHub <noreply@github.com>2022-05-26 16:11:24 +0300
commitad25716a756b6403790eff85d108efa2d63b668c (patch)
tree771324f15d8f1fe1254733f397f5a8abf3edba41
parent9eb97b5d94ca4434f9035af164fe3a48dca31de2 (diff)
downloadredis-ad25716a756b6403790eff85d108efa2d63b668c.tar.gz
Added the function name/script sha to the script timeout log message. (#10780)
Added the function name/script sha to the script timeout log message. This info existed in the log in redis 6.2, was removed in the function refactoring since was initially complicated, but later made simple.
-rw-r--r--src/script.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/script.c b/src/script.c
index 9f474f8e6..07d6387cc 100644
--- a/src/script.c
+++ b/src/script.c
@@ -92,8 +92,8 @@ int scriptInterrupt(scriptRunCtx *run_ctx) {
serverLog(LL_WARNING,
"Slow script detected: still in execution after %lld milliseconds. "
- "You can try killing the script using the %s command.",
- elapsed, (run_ctx->flags & SCRIPT_EVAL_MODE) ? "SCRIPT KILL" : "FUNCTION KILL");
+ "You can try killing the script using the %s command. Script name is: %s.",
+ elapsed, (run_ctx->flags & SCRIPT_EVAL_MODE) ? "SCRIPT KILL" : "FUNCTION KILL", run_ctx->funcname);
enterScriptTimedoutMode(run_ctx);
/* Once the script timeouts we reenter the event loop to permit others