diff options
author | Binbin <binloveplay1314@qq.com> | 2023-02-19 22:33:19 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-19 16:33:19 +0200 |
commit | 521e54f551386eaec3e84ddad052add391059e5e (patch) | |
tree | dbac88c48791fb08e04353a133fc24f0ad21c722 /src/config.c | |
parent | 5b61b0dc6d2579ee484fa6cf29bfac59513f84ab (diff) | |
download | redis-521e54f551386eaec3e84ddad052add391059e5e.tar.gz |
Demoting some of the non-warning messages to notice (#10715)
We have cases where we print information (might be important but by
no means an error indicator) with the LL_WARNING level.
Demoting these to LL_NOTICE:
- oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
- User requested shutdown...
This is also true for cases that we encounter a rare but normal situation.
Demoting to LL_NOTICE. Examples:
- AOF was enabled but there is already another background operation. An AOF background was scheduled to start when possible.
- Connection with master lost.
base on yoav-steinberg's https://github.com/redis/redis/pull/10650#issuecomment-1112280554
and yossigo's https://github.com/redis/redis/pull/10650#pullrequestreview-967677676
Diffstat (limited to 'src/config.c')
-rw-r--r-- | src/config.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/config.c b/src/config.c index 9de4ecd41..97c4028ad 100644 --- a/src/config.c +++ b/src/config.c @@ -702,7 +702,7 @@ void loadServerConfig(char *filename, char config_from_stdin, char *options) { /* Append content from stdin */ if (config_from_stdin) { - serverLog(LL_WARNING,"Reading config from stdin"); + serverLog(LL_NOTICE,"Reading config from stdin"); fp = stdin; while(fgets(buf,CONFIG_READ_LEN+1,fp) != NULL) config = sdscat(config,buf); @@ -3366,7 +3366,7 @@ void configRewriteCommand(client *c) { serverLog(LL_WARNING,"CONFIG REWRITE failed: %s", strerror(err)); addReplyErrorFormat(c,"Rewriting config file: %s", strerror(err)); } else { - serverLog(LL_WARNING,"CONFIG REWRITE executed with success."); + serverLog(LL_NOTICE,"CONFIG REWRITE executed with success."); addReply(c,shared.ok); } } |