Add kv_log_level, print warnings on level 1, trace ops on level 10

This commit is contained in:
Vitaliy Filippov
2024-03-16 13:24:36 +03:00
parent 605afc3583
commit 79ae0aadcd
3 changed files with 24 additions and 11 deletions
+6 -2
View File
@@ -255,9 +255,13 @@ void kv_cli_t::handle_cmd(const std::string & cmd, std::function<void()> cb)
key != "kv_allocate_blocks" &&
key != "kv_evict_max_misses" &&
key != "kv_evict_attempts_per_level" &&
key != "kv_evict_unused_age")
key != "kv_evict_unused_age" &&
key != "kv_log_level")
{
fprintf(stderr, "Allowed properties: kv_memory_limit, kv_allocate_blocks, kv_evict_max_misses, kv_evict_attempts_per_level, kv_evict_unused_age\n");
fprintf(
stderr, "Allowed properties: kv_memory_limit, kv_allocate_blocks,"
" kv_evict_max_misses, kv_evict_attempts_per_level, kv_evict_unused_age, kv_log_level\n"
);
}
else
{