mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-31 11:08:22 +08:00
mdbx-tools: add check for log-level.
This commit is contained in:
parent
6f06641bf2
commit
eb532b8907
@ -138,7 +138,8 @@ static void va_log(MDBX_log_level_t level, const char *msg, va_list args) {
|
||||
out = stderr;
|
||||
}
|
||||
|
||||
if (!quiet && verbose + 1 >= (unsigned)level) {
|
||||
if (!quiet && verbose + 1 >= (unsigned)level &&
|
||||
(unsigned)level < ARRAY_LENGTH(prefixes)) {
|
||||
fflush(nullptr);
|
||||
fputs(prefixes[level], out);
|
||||
vfprintf(out, msg, args);
|
||||
|
Loading…
x
Reference in New Issue
Block a user