We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7854669 commit 0233f19Copy full SHA for 0233f19
2 files changed
lua/null-ls/logger.lua
@@ -55,7 +55,7 @@ end
55
--- Retrieves the path of the logfile
56
---@return string path path of the logfile
57
function log:get_path()
58
- return u.path.join(vim.fn.stdpath("cache") --[[@as string]], "null-ls.log")
+ return u.path.join(vim.fn.stdpath("log") --[[@as string]], "null-ls.log")
59
end
60
61
---Add a log entry at TRACE level
test/spec/logger_spec.lua
@@ -2,7 +2,7 @@ local logger = require("null-ls.logger")
2
3
describe("logger", function()
4
it("get_path should return log file path from cache folder", function()
5
- local expected = vim.fn.stdpath("cache") .. "/" .. "null-ls.log"
+ local expected = vim.fn.stdpath("log") .. "/" .. "null-ls.log"
6
assert.equals(expected, logger:get_path())
7
end)
8
0 commit comments