]> git.saurik.com Git - redis.git/commitdiff
Fix warning in redis.c for sentinel config load
authormrb <michaelrbernstein@gmail.com>
Wed, 25 Jul 2012 13:55:53 +0000 (09:55 -0400)
committermrb <michaelrbernstein@gmail.com>
Wed, 25 Jul 2012 13:55:53 +0000 (09:55 -0400)
src/redis.c

index 248693b6fd1592a8e7166bd5023db82837355a6c..e636aa9b550504c6fbccba0dac2f0d3fb5dd347b 100644 (file)
@@ -2596,7 +2596,7 @@ int main(int argc, char **argv) {
         loadServerConfig(configfile,options);
         sdsfree(options);
     } else {
-        redisLog(REDIS_WARNING,"Warning: no config file specified, using the default config. In order to specify a config file use 'redis-server /path/to/redis.conf'");
+        redisLog(REDIS_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");
     }
     if (server.daemonize) daemonize();
     initServer();