Permalink
Browse files

Log when CONFIG REWRITE goes bad.

  • Loading branch information...
1 parent f2bdf60 commit 7e8abcf6932120b5f9c8a7dadafbd5a8045c2bb6 @antirez committed Feb 13, 2014
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/config.c
View
@@ -1824,6 +1824,7 @@ void configCommand(redisClient *c) {
return;
}
if (rewriteConfig(server.configfile) == -1) {
+ redisLog(REDIS_WARNING,"CONFIG REWRITE failed: %s", strerror(errno));
addReplyErrorFormat(c,"Rewriting config file: %s", strerror(errno));
} else {
addReply(c,shared.ok);

0 comments on commit 7e8abcf

Please sign in to comment.