Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
3e0a975e
Commit
3e0a975e
authored
Nov 25, 2011
by
antirez
Browse files
log client protocol errors for log level >= verbose
parent
674df1ee
Changes
1
Show whitespace changes
Inline
Side-by-side
src/networking.c
View file @
3e0a975e
...
...
@@ -695,6 +695,12 @@ int processInlineBuffer(redisClient *c) {
/* Helper function. Trims query buffer to make the function that processes
* multi bulk requests idempotent. */
static
void
setProtocolError
(
redisClient
*
c
,
int
pos
)
{
if
(
server
.
verbosity
>=
REDIS_VERBOSE
)
{
sds
client
=
getClientInfoString
(
c
);
redisLog
(
REDIS_VERBOSE
,
"Protocol error from client: %s"
,
client
);
sdsfree
(
client
);
}
c
->
flags
|=
REDIS_CLOSE_AFTER_REPLY
;
c
->
querybuf
=
sdsrange
(
c
->
querybuf
,
pos
,
-
1
);
}
...
...
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