Commit 116617c5 authored by antirez's avatar antirez
Browse files

Log when CONFIG REWRITE goes bad.

parent 767846dc
...@@ -1824,6 +1824,7 @@ void configCommand(redisClient *c) { ...@@ -1824,6 +1824,7 @@ void configCommand(redisClient *c) {
return; return;
} }
if (rewriteConfig(server.configfile) == -1) { if (rewriteConfig(server.configfile) == -1) {
redisLog(REDIS_WARNING,"CONFIG REWRITE failed: %s", strerror(errno));
addReplyErrorFormat(c,"Rewriting config file: %s", strerror(errno)); addReplyErrorFormat(c,"Rewriting config file: %s", strerror(errno));
} else { } else {
addReply(c,shared.ok); addReply(c,shared.ok);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment