diff options
Diffstat (limited to 'src/nvim/log.c')
| -rw-r--r-- | src/nvim/log.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/nvim/log.c b/src/nvim/log.c index 6262a3b649..58eda798e5 100644 --- a/src/nvim/log.c +++ b/src/nvim/log.c @@ -149,13 +149,9 @@ bool logmsg(int log_level, const char *context, const char *func_name, int line_ return false; } -#ifndef NVIM_LOG_DEBUG - // This should rarely happen (callsites are compiled out), but to be sure. - // TODO(bfredl): allow log levels to be configured at runtime - if (log_level < LOGLVL_WRN) { + if (log_level < g_min_log_level) { return false; } -#endif #ifdef EXITFREE // Logging after we've already started freeing all our memory will only cause |
