Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
5e403099
Unverified
Commit
5e403099
authored
Nov 23, 2023
by
Binbin
Committed by
GitHub
Nov 23, 2023
Browse files
Fix misleading error message in redis.log when loglevel is invalid (#12636)
We don't have any debug level, change it to log level.
parent
c9aa586b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/script_lua.c
View file @
5e403099
...
...
@@ -1169,7 +1169,7 @@ static int luaLogCommand(lua_State *lua) {
}
level
=
lua_tonumber
(
lua
,
-
argc
);
if
(
level
<
LL_DEBUG
||
level
>
LL_WARNING
)
{
luaPushError
(
lua
,
"Invalid
debu
g level."
);
luaPushError
(
lua
,
"Invalid
lo
g level."
);
return
luaError
(
lua
);
}
if
(
level
<
server
.
verbosity
)
return
0
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment