Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the redis.log function in Lua script #379

Merged
merged 1 commit into from
Nov 1, 2021
Merged

Add the redis.log function in Lua script #379

merged 1 commit into from
Nov 1, 2021

Conversation

git-hulk
Copy link
Member

We implement the builtin function redis.log() for the Lua script,
but the log level was different between Redis and Kvrocks, so we
choose to keep consistency with Redis's log level to avoid compatible
problem with the below mappings(which would make the legacy script happy):

LOG_DEBUG => NULL
LOG_VERBOSE => INFO
LOG_NOTICE => INFO
LOG_WARNING => WARNING

LOG_DEBUG would never work since the debug level make no sense in kvrocks

We implement the builtin function `redis.log()` for the Lua script,
but the log level was different between Redis and Kvrocks, so we
choose to keep consistency with Redis's log level to avoid compatible
problem with below mappings(which would make the legacy script happy):

LOG_DEBUG   => NULL
LOG_VERBOSE => INFO
LOG_NOTICE  => INFO
LOG_WARNING => WARNING

LOG_DEBUG would never work since the debug level make no sense in kvrocks
@git-hulk git-hulk merged commit e16f505 into apache:unstable Nov 1, 2021
ShooterIT pushed a commit to ShooterIT/kvrocks that referenced this pull request Nov 2, 2021
We implement the builtin function `redis.log()` for the Lua script,
but the log level was different between Redis and Kvrocks, so we
choose to keep consistency with Redis's log level to avoid compatible
problem with below mappings(which would make the legacy script happy):

LOG_DEBUG   => NULL
LOG_VERBOSE => INFO
LOG_NOTICE  => INFO
LOG_WARNING => WARNING

LOG_DEBUG would never work since the debug level make no sense in kvrocks
ShooterIT pushed a commit that referenced this pull request Nov 2, 2021
We implement the builtin function `redis.log()` for the Lua script,
but the log level was different between Redis and Kvrocks, so we
choose to keep consistency with Redis's log level to avoid compatible
problem with below mappings(which would make the legacy script happy):

LOG_DEBUG   => NULL
LOG_VERBOSE => INFO
LOG_NOTICE  => INFO
LOG_WARNING => WARNING

LOG_DEBUG would never work since the debug level make no sense in kvrocks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants