mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 19:38:20 +00:00
feat(logs): show full paths in lsp logs (#33886)
feat(logs): show full path of short_src in lsp logs Problem: - Cannot gf to info.short_src printed in the logs since only the last 16 characters are printed Solution: - Print full info.short_src and remove ...
This commit is contained in:

committed by
GitHub

parent
81bb7613f9
commit
4eed85f9bd
@@ -132,10 +132,10 @@ local function create_logger(level, levelnr)
|
|||||||
end
|
end
|
||||||
local info = debug.getinfo(2, 'Sl')
|
local info = debug.getinfo(2, 'Sl')
|
||||||
local header = string.format(
|
local header = string.format(
|
||||||
'[%s][%s] ...%s:%s',
|
'[%s][%s] %s:%s',
|
||||||
level,
|
level,
|
||||||
os.date(log_date_format),
|
os.date(log_date_format),
|
||||||
info.short_src:sub(-16),
|
info.short_src,
|
||||||
info.currentline
|
info.currentline
|
||||||
)
|
)
|
||||||
local parts = { header }
|
local parts = { header }
|
||||||
|
Reference in New Issue
Block a user