Skip to content

Commit

Permalink
Update log.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
RoadRoller01 authored Jan 25, 2025
1 parent 1c96e48 commit 8aa69c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/dap/log.lua
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ function Log:_log(level, levelnr, ...)
if argc == 0 then
return true
end
local info = debug.getinfo(2, 'Sl')
local info = debug.getinfo(3, 'Sl')
local _, end_ = info.short_src:find("nvim-dap/lua", 1, true)
local src = end_ and info.short_src:sub(end_ + 2) or info.short_src
local fileinfo = string.format('%s:%s', src, info.currentline)
Expand Down

0 comments on commit 8aa69c8

Please sign in to comment.