mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 05:58:33 +00:00
refactor(log): reduce compile time LOG_LEVEL granularity
This commit is contained in:
@@ -1095,15 +1095,3 @@ void vim_unescape_ks(char *p)
|
||||
}
|
||||
*d = NUL;
|
||||
}
|
||||
|
||||
/// Logs a single key as a human-readable keycode.
|
||||
void log_key(int log_level, int key)
|
||||
{
|
||||
if (log_level < MIN_LOG_LEVEL) {
|
||||
return;
|
||||
}
|
||||
char *keyname = key == K_EVENT
|
||||
? "K_EVENT"
|
||||
: (char *)get_special_key_name(key, mod_mask);
|
||||
LOG(log_level, "input: %s", keyname);
|
||||
}
|
||||
|
Reference in New Issue
Block a user