mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
spicy-redis: Separate error replies from success
This commit is contained in:
parent
d5b121db14
commit
b4429a995a
21 changed files with 130 additions and 73 deletions
|
@ -16,3 +16,13 @@ event Redis::auth_command(c: connection, command: Redis::AuthCommand)
|
|||
|
||||
print fmt("password: %s", command$password);
|
||||
}
|
||||
|
||||
event Redis::reply(c: connection, data: Redis::ReplyData)
|
||||
{
|
||||
print "Auth succeeded:", data$value;
|
||||
}
|
||||
|
||||
event Redis::error(c: connection, data: Redis::ReplyData)
|
||||
{
|
||||
print "Auth failed:", data$value;
|
||||
}
|
||||
|
|
|
@ -11,7 +11,12 @@ event Redis::command(c: connection, command: Redis::Command)
|
|||
print "BAD", command;
|
||||
}
|
||||
|
||||
event Redis::reply(c: connection, dat: Redis::ServerData)
|
||||
event Redis::reply(c: connection, dat: Redis::ReplyData)
|
||||
{
|
||||
print "BAD", dat;
|
||||
}
|
||||
|
||||
event Redis::error(c: connection, dat: Redis::ReplyData)
|
||||
{
|
||||
print "BAD", dat;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue