Log branding (#252)
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 <viktor.soderqvist@est.tech>
This commit is contained in:
parent
c7c021e5d2
commit
6b94bea234
@ -4448,7 +4448,7 @@ int finishShutdown(void) {
|
|||||||
|
|
||||||
|
|
||||||
serverLog(LL_WARNING,"%s is now ready to exit, bye bye...",
|
serverLog(LL_WARNING,"%s is now ready to exit, bye bye...",
|
||||||
server.sentinel_mode ? "Sentinel" : "Redis");
|
server.sentinel_mode ? "Sentinel" : "Valkey");
|
||||||
return C_OK;
|
return C_OK;
|
||||||
|
|
||||||
error:
|
error:
|
||||||
@ -7294,8 +7294,8 @@ int main(int argc, char **argv) {
|
|||||||
int background = server.daemonize && !server.supervised;
|
int background = server.daemonize && !server.supervised;
|
||||||
if (background) daemonize();
|
if (background) daemonize();
|
||||||
|
|
||||||
serverLog(LL_NOTICE, "oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo");
|
serverLog(LL_NOTICE, "oO0OoO0OoO0Oo Valkey is starting oO0OoO0OoO0Oo");
|
||||||
serverLog(LL_NOTICE, SERVER_NAME " version=%s, bits=%d, commit=%s, modified=%d, pid=%d, just started",
|
serverLog(LL_NOTICE, "Valkey version=%s, bits=%d, commit=%s, modified=%d, pid=%d, just started",
|
||||||
VALKEY_VERSION,
|
VALKEY_VERSION,
|
||||||
(sizeof(long) == 8) ? 64 : 32,
|
(sizeof(long) == 8) ? 64 : 32,
|
||||||
redisGitSHA1(),
|
redisGitSHA1(),
|
||||||
@ -7303,7 +7303,7 @@ int main(int argc, char **argv) {
|
|||||||
(int)getpid());
|
(int)getpid());
|
||||||
|
|
||||||
if (argc == 1) {
|
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 {
|
} else {
|
||||||
serverLog(LL_NOTICE, "Configuration loaded");
|
serverLog(LL_NOTICE, "Configuration loaded");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user