diff options
-rw-r--r-- | src/shared/log.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/shared/log.c b/src/shared/log.c index 2531e0da03..c654b86228 100644 --- a/src/shared/log.c +++ b/src/shared/log.c @@ -690,6 +690,9 @@ int log_meta_object( static void log_assert(int level, const char *text, const char *file, int line, const char *func, const char *format) { static char buffer[LINE_MAX]; + if (_likely_(LOG_PRI(level) > log_max_level)) + return; + snprintf(buffer, sizeof(buffer), format, text, file, line, func); char_array_0(buffer); |