Permalink
Browse files

Merge pull request #603 from mrb/fix_sentinel_config_warning

Fix warning in redis.c for sentinel config load
  • Loading branch information...
2 parents 7c15dd1 + f1c8661 commit 42c571864e38016d5711e4cd55fb87dd411a064e @antirez committed Jul 25, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/redis.c
View
@@ -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();

0 comments on commit 42c5718

Please sign in to comment.