diff --git a/redis.conf b/redis.conf index a58e46e5a..ee603b118 100644 --- a/redis.conf +++ b/redis.conf @@ -346,6 +346,7 @@ pidfile /var/run/redis_6379.pid # verbose (many rarely useful info, but not a mess like the debug level) # notice (moderately verbose, what you want in production probably) # warning (only very important / critical messages are logged) +# nothing (nothing is logged) loglevel notice # Specify the log file name. Also the empty string can be used to force diff --git a/src/config.c b/src/config.c index 6978cc5e7..36c2e42b7 100644 --- a/src/config.c +++ b/src/config.c @@ -79,6 +79,7 @@ configEnum loglevel_enum[] = { {"verbose", LL_VERBOSE}, {"notice", LL_NOTICE}, {"warning", LL_WARNING}, + {"nothing", LL_NOTHING}, {NULL,0} }; diff --git a/src/server.h b/src/server.h index e3f9c9729..c9a97966c 100644 --- a/src/server.h +++ b/src/server.h @@ -507,6 +507,7 @@ typedef enum { #define LL_VERBOSE 1 #define LL_NOTICE 2 #define LL_WARNING 3 +#define LL_NOTHING 4 #define LL_RAW (1<<10) /* Modifier to log without timestamp */ /* Supervision options */