From 6b94bea234b08b2b56665c2943742ee51d425bd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20S=C3=B6derqvist?= Date: Mon, 8 Apr 2024 02:28:02 +0200 Subject: [PATCH] Log branding (#252) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Small changes to the log messages printed during startup and shutdown, for Valkey branding. SERVER_NAME is replaced by verbatim "Valkey" in one place, because SERVER_NAME expands to "valkey" in lowercase. (Should we introduce another macro that expands to "Valkey"?) Signed-off-by: Viktor Söderqvist --- src/server.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/server.c b/src/server.c index 1cf83bd89..53be33a09 100644 --- a/src/server.c +++ b/src/server.c @@ -4448,7 +4448,7 @@ int finishShutdown(void) { serverLog(LL_WARNING,"%s is now ready to exit, bye bye...", - server.sentinel_mode ? "Sentinel" : "Redis"); + server.sentinel_mode ? "Sentinel" : "Valkey"); return C_OK; error: @@ -7294,8 +7294,8 @@ int main(int argc, char **argv) { int background = server.daemonize && !server.supervised; if (background) daemonize(); - serverLog(LL_NOTICE, "oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo"); - serverLog(LL_NOTICE, SERVER_NAME " version=%s, bits=%d, commit=%s, modified=%d, pid=%d, just started", + serverLog(LL_NOTICE, "oO0OoO0OoO0Oo Valkey is starting oO0OoO0OoO0Oo"); + serverLog(LL_NOTICE, "Valkey version=%s, bits=%d, commit=%s, modified=%d, pid=%d, just started", VALKEY_VERSION, (sizeof(long) == 8) ? 64 : 32, redisGitSHA1(), @@ -7303,7 +7303,7 @@ int main(int argc, char **argv) { (int)getpid()); if (argc == 1) { - serverLog(LL_WARNING, "Warning: no config file specified, using the default config. In order to specify a config file use %s /path/to/redis.conf", argv[0]); + serverLog(LL_WARNING, "Warning: no config file specified, using the default config. In order to specify a config file use %s /path/to/valkey.conf", argv[0]); } else { serverLog(LL_NOTICE, "Configuration loaded"); }