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
e93dcba4
Unverified
Commit
e93dcba4
authored
Apr 06, 2020
by
Salvatore Sanfilippo
Committed by
GitHub
Apr 06, 2020
Browse files
Merge pull request #7064 from mymilkbottles/unstable
Optimize lua log level judgment
parents
9a910943
7bd5ccaa
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/scripting.c
View file @
e93dcba4
...
@@ -959,6 +959,7 @@ int luaLogCommand(lua_State *lua) {
...
@@ -959,6 +959,7 @@ int luaLogCommand(lua_State *lua) {
lua_pushstring
(
lua
,
"Invalid debug level."
);
lua_pushstring
(
lua
,
"Invalid debug level."
);
return
lua_error
(
lua
);
return
lua_error
(
lua
);
}
}
if
(
level
<
server
.
verbosity
)
return
0
;
/* Glue together all the arguments */
/* Glue together all the arguments */
log
=
sdsempty
();
log
=
sdsempty
();
...
...
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