summaryrefslogtreecommitdiff
path: root/tests/modules
diff options
context:
space:
mode:
authorMadelyn Olson <34459052+madolson@users.noreply.github.com>2022-04-11 22:16:17 -0700
committerGitHub <noreply@github.com>2022-04-11 22:16:17 -0700
commit8bd01a07ae75609a36335ab34b37da41da1b1bf2 (patch)
tree554db739e86b21da964803b9534e5636ee8c00d8 /tests/modules
parent4c6d9bbd626bb25cf7d154ea0b7d347172015cfb (diff)
downloadredis-8bd01a07ae75609a36335ab34b37da41da1b1bf2.tar.gz
Allow specifying ACL reason for module log entry (#10559)
Allow specifying an ACL log reason, which is shown in the log. Right now it always shows "unknown", which is a little bit cryptic. This is a breaking change, but this API was added as part of 7 so it seems ok to stabilize it still.
Diffstat (limited to 'tests/modules')
-rw-r--r--tests/modules/aclcheck.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/modules/aclcheck.c b/tests/modules/aclcheck.c
index 8a9d468a6..9f4564d27 100644
--- a/tests/modules/aclcheck.c
+++ b/tests/modules/aclcheck.c
@@ -92,7 +92,7 @@ int rm_call_aclcheck_cmd(RedisModuleCtx *ctx, RedisModuleUser *user, RedisModule
if (ret != 0) {
RedisModule_ReplyWithError(ctx, "DENIED CMD");
/* Add entry to ACL log */
- RedisModule_ACLAddLogEntry(ctx, user, argv[1]);
+ RedisModule_ACLAddLogEntry(ctx, user, argv[1], REDISMODULE_ACL_LOG_CMD);
return REDISMODULE_OK;
}