mirror of
https://github.com/isar/libmdbx.git
synced 2025-02-07 18:59:35 +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;
|
out = stderr;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!quiet && verbose + 1 >= (unsigned)level) {
|
if (!quiet && verbose + 1 >= (unsigned)level &&
|
||||||
|
(unsigned)level < ARRAY_LENGTH(prefixes)) {
|
||||||
fflush(nullptr);
|
fflush(nullptr);
|
||||||
fputs(prefixes[level], out);
|
fputs(prefixes[level], out);
|
||||||
vfprintf(out, msg, args);
|
vfprintf(out, msg, args);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user