Browse Source

TT#97301 fix bit-setting of negative log levels

Change-Id: I383645d874f17a128385aae8a0f1e3f7f9b99ff3
pull/1164/head
Richard Fuchs 5 years ago
parent
commit
d466e5c326
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      daemon/redis.c

+ 2
- 1
daemon/redis.c View File

@ -1956,7 +1956,8 @@ int redis_restore(struct redis *r) {
err:
for (unsigned int i = 0; i < num_log_levels; i++)
rtpe_config.common.log_levels[i] &= ~LOG_FLAG_RESTORE;
if (rtpe_config.common.log_levels[i] > 0)
rtpe_config.common.log_levels[i] &= ~LOG_FLAG_RESTORE;
return ret;
}


Loading…
Cancel
Save