Skip to content

Commit

Permalink
chore: add debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikaverpil committed Jul 22, 2024
1 parent f3cf194 commit fa8f79f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lua/neotest-golang/runspec/dir.lua
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ function M.build(pos)
return nil -- NOTE: logger.error will throw an error, but the LSP doesn't see it.
end

logger.debug({ "Go mod filepath", go_mod_filepath })

local go_mod_folderpath = vim.fn.fnamemodify(go_mod_filepath, ":h")
local golist_data = lib.cmd.golist_data(go_mod_folderpath)

Expand Down
2 changes: 2 additions & 0 deletions lua/neotest-golang/runspec/file.lua
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ function M.build(pos, tree)
return nil -- NOTE: logger.error will throw an error, but the LSP doesn't see it.
end

logger.debug({ "Go mod filepath", go_mod_filepath })

local go_mod_folderpath = vim.fn.fnamemodify(go_mod_filepath, ":h")
local golist_data = lib.cmd.golist_data(go_mod_folderpath)

Expand Down

0 comments on commit fa8f79f

Please sign in to comment.