From ad25716a756b6403790eff85d108efa2d63b668c Mon Sep 17 00:00:00 2001 From: "Meir Shpilraien (Spielrein)" Date: Thu, 26 May 2022 16:11:24 +0300 Subject: [PATCH] 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. --- src/script.c | 4 ++-- 1 file 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