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

Occurrences of "Redis" in log entries #207

Closed
Tracked by #25
zuiderkwast opened this issue Apr 4, 2024 · 10 comments
Closed
Tracked by #25

Occurrences of "Redis" in log entries #207

zuiderkwast opened this issue Apr 4, 2024 · 10 comments
Assignees

Comments

@zuiderkwast
Copy link
Contributor

zuiderkwast commented Apr 4, 2024

We decided (in #254) to change all log entries containing "Redis" to use this style:

serverLog(LL_NOTICE, "%s forked for debugging eval", SERVER_TITLE);

also serverPanic is logging, so we use %s for this too:

serverPanic("Unrecoverable error creating %s Cluster socket accept handler.", SERVER_TITLE);

We shall define SERVER_TITLE to "Valkey" in server.h. (It's different to SERVER_NAME which is "valkey" with lowercase "v".)

Skip the "=== REDIS BUG REPORT". We'll handle that in a separate PR for #274.

@zuiderkwast zuiderkwast mentioned this issue Apr 4, 2024
18 tasks
@zuiderkwast
Copy link
Contributor Author

@0del do you want to do this one?

@9bany
Copy link
Contributor

9bany commented Apr 4, 2024

Please assign it to me. Thanks. I will pick it up later, perhaps tomorrow morning. It's nighttime in my time zone now.

@zuiderkwast
Copy link
Contributor Author

zuiderkwast commented Apr 11, 2024

We decided (in #254) to change all log entries containing "Redis" to use this style:

serverLog(LL_NOTICE, "%s forked for debugging eval", SERVER_TITLE);

also serverPanic is logging, so we use %s for this too:

serverPanic("Unrecoverable error creating %s Cluster socket accept handler.", SERVER_TITLE);

We shall define SERVER_TITLE to "Valkey" in server.h. (It's different to SERVER_NAME which is "valkey" with lowercase "v".)

Skip the "=== REDIS BUG REPORT". We'll handle that in a separate PR for #274.

For all the other log entres, I would prefer to have them all in one big PR. The risk for merge conflicts is less now that most other rebranding is already done.

@0del are you still up for this? If not, I can do it.

@9bany
Copy link
Contributor

9bany commented Apr 11, 2024

sure, i will still work on it

@zuiderkwast
Copy link
Contributor Author

@0del I'm adding the macro SERVER_TITLE in #306 (in version.h). You can add it exactly the same in your PR too, in the same file, and if one of us gets a merge conflict, it will be easy to solve.

zuiderkwast pushed a commit that referenced this issue Apr 17, 2024
Log messages containing "Redis" in some files are changed.

Add macro SERVER_TITLE defined to "Valkey" (uppercase V) is introduced
and used in log messages, so at least it will be easy to patch this
definition to get Redis or any other name in the logs instead of Valkey.

Change "Redis" in some log messages to use %s and SERVER_TITLE.

This is a partial implementation of
#207

---------

Signed-off-by: 0del <bany.y0599@gmail.com>
zuiderkwast pushed a commit to zuiderkwast/placeholderkv that referenced this issue Apr 17, 2024
Log messages containing "Redis" in some files are changed.

Add macro SERVER_TITLE defined to "Valkey" (uppercase V) is introduced
and used in log messages, so at least it will be easy to patch this
definition to get Redis or any other name in the logs instead of Valkey.

Change "Redis" in some log messages to use %s and SERVER_TITLE.

This is a partial implementation of
valkey-io#207

---------

Signed-off-by: 0del <bany.y0599@gmail.com>
@SoulPancake
Copy link

Is this completed? @zuiderkwast

@zuiderkwast
Copy link
Contributor Author

I think there are some log messages left todo.

PatrickJS pushed a commit to PatrickJS/placeholderkv that referenced this issue Apr 24, 2024
Log messages containing "Redis" in some files are changed.

Add macro SERVER_TITLE defined to "Valkey" (uppercase V) is introduced
and used in log messages, so at least it will be easy to patch this
definition to get Redis or any other name in the logs instead of Valkey.

Change "Redis" in some log messages to use %s and SERVER_TITLE.

This is a partial implementation of
valkey-io#207

---------

Signed-off-by: 0del <bany.y0599@gmail.com>
zuiderkwast pushed a commit that referenced this issue May 1, 2024
…of-rewrite (#393)

Renamed redis to valkey/server in aof.c serverlogs.

The AOF rewrite child process title is set to "redis-aof-rewrite" if
Valkey was started from a redis-server symlink, otherwise to
"valkey-aof-rewrite".

This is a breaking changes since logs are changed.

Part of #207.

---------

Signed-off-by: Shivshankar-Reddy <shiva.sheri.github@gmail.com>
PingXie pushed a commit to PingXie/valkey that referenced this issue May 2, 2024
…of-rewrite (valkey-io#393)

Renamed redis to valkey/server in aof.c serverlogs.

The AOF rewrite child process title is set to "redis-aof-rewrite" if
Valkey was started from a redis-server symlink, otherwise to
"valkey-aof-rewrite".

This is a breaking changes since logs are changed.

Part of valkey-io#207.

---------

Signed-off-by: Shivshankar-Reddy <shiva.sheri.github@gmail.com>
zuiderkwast pushed a commit that referenced this issue Jun 4, 2024
Part of #207

---------

Signed-off-by: Shivshankar-Reddy <shiva.sheri.github@gmail.com>
naglera pushed a commit to naglera/placeholderkv that referenced this issue Jun 10, 2024
Part of valkey-io#207

---------

Signed-off-by: Shivshankar-Reddy <shiva.sheri.github@gmail.com>
@madolson
Copy link
Member

madolson commented Sep 4, 2024

@zuiderkwast Do you recall if this was finalized? I thought we finished this, but Valkey 8 is when it should all be done.

@zuiderkwast
Copy link
Contributor Author

I'm not sure. We should probably grep again to check.

@zuiderkwast
Copy link
Contributor Author

$ git grep -i serverlog.*redis
src/module.c:                serverLog(LL_NOTICE, "Legacy Redis Module %s found", path);
src/module.c:                serverLog(LL_NOTICE, "Legacy Redis Module %s found", name);
src/rdb.c:                serverLog(LL_NOTICE, "Loading RDB produced by Redis version %s", (char *)auxval->ptr);

These are as expected. I can't see any multiline log entries with redis either.

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

No branches or pull requests

4 participants