Log to what master a slave is going to connect to.

This commit is contained in:
antirez 2013-11-11 09:25:36 +01:00
parent a5e7358a12
commit b2f834390c

View File

@ -1527,7 +1527,8 @@ void replicationCron(void) {
/* Check if we should connect to a MASTER */
if (server.repl_state == REDIS_REPL_CONNECT) {
redisLog(REDIS_NOTICE,"Connecting to MASTER...");
redisLog(REDIS_NOTICE,"Connecting to MASTER %s:%d",
server.masterhost, server.masterport);
if (connectWithMaster() == REDIS_OK) {
redisLog(REDIS_NOTICE,"MASTER <-> SLAVE sync started");
}