Clean up no-conf server warning for sentinel mode (#8769)

This commit is contained in:
Wen Hui 2021-04-13 09:28:54 -04:00 committed by GitHub
parent 733daef127
commit 38da8d07d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6302,7 +6302,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/%s.conf", argv[0], server.sentinel_mode ? "sentinel" : "redis");
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]);
} else {
serverLog(LL_WARNING, "Configuration loaded");
}