Skip to content

Commit

Permalink
Log to what master a slave is going to connect to.
Browse files Browse the repository at this point in the history
  • Loading branch information
antirez committed Nov 11, 2013
1 parent aecb640 commit 9316362
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/replication.c
Original file line number Diff line number Diff line change
Expand Up @@ -795,7 +795,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");
}
Expand Down

0 comments on commit 9316362

Please sign in to comment.