Unverified Commit ad25716a authored by Meir Shpilraien (Spielrein)'s avatar Meir Shpilraien (Spielrein) Committed by GitHub
Browse files

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.
parent 9eb97b5d
...@@ -92,8 +92,8 @@ int scriptInterrupt(scriptRunCtx *run_ctx) { ...@@ -92,8 +92,8 @@ int scriptInterrupt(scriptRunCtx *run_ctx) {
serverLog(LL_WARNING, serverLog(LL_WARNING,
"Slow script detected: still in execution after %lld milliseconds. " "Slow script detected: still in execution after %lld milliseconds. "
"You can try killing the script using the %s command.", "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"); elapsed, (run_ctx->flags & SCRIPT_EVAL_MODE) ? "SCRIPT KILL" : "FUNCTION KILL", run_ctx->funcname);
enterScriptTimedoutMode(run_ctx); enterScriptTimedoutMode(run_ctx);
/* Once the script timeouts we reenter the event loop to permit others /* Once the script timeouts we reenter the event loop to permit others
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment