mirror of
https://github.com/fluencelabs/redis
synced 2025-04-03 08:11:03 +00:00
Check server.verbosity in RM_LogRaw
This commit is contained in:
parent
81008bf99e
commit
ed88f77d6d
@ -3421,6 +3421,8 @@ void RM_LogRaw(RedisModule *module, const char *levelstr, const char *fmt, va_li
|
||||
else if (!strcasecmp(levelstr,"warning")) level = LL_WARNING;
|
||||
else level = LL_VERBOSE; /* Default. */
|
||||
|
||||
if (level < server.verbosity) return;
|
||||
|
||||
name_len = snprintf(msg, sizeof(msg),"<%s> ", module->name);
|
||||
vsnprintf(msg + name_len, sizeof(msg) - name_len, fmt, ap);
|
||||
serverLogRaw(level,msg);
|
||||
|
Loading…
x
Reference in New Issue
Block a user