refactor(log): reduce compile time LOG_LEVEL granularity

This commit is contained in:
bfredl
2023-02-26 12:51:03 +01:00
parent 6cab36e5b7
commit 2ba224e152
14 changed files with 108 additions and 146 deletions

View File

@@ -92,8 +92,9 @@ getkey:
may_sync_undo();
}
#if MIN_LOG_LEVEL <= LOGLVL_DBG
log_key(LOGLVL_DBG, key);
#ifdef NVIM_LOG_DEBUG
char *keyname = key == K_EVENT ? "K_EVENT" : (char *)get_special_key_name(key, mod_mask);
DLOG("input: %s", keyname);
#endif
int execute_result = s->execute(s, key);