mirror of
https://github.com/isar/libmdbx.git
synced 2025-08-23 21:14:28 +08:00
mdbx-tools: add check for log-level.
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user