Skip to content

Commit

Permalink
Merge pull request #31 from axieax/log-location
Browse files Browse the repository at this point in the history
fix: update default path for debug logging
  • Loading branch information
cmgriffing authored May 31, 2022
2 parents 15a0cb1 + 1e0d8f8 commit ed33933
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ As we make tailored handlers for specific languages we will create a table here

## Development

While doing local dev, it can be nice to use the `utils.console_log` command to write runtime logs to `~/vim-biscuits.log`.
While doing local dev, it can be nice to use the `utils.console_log` command to write runtime logs to `~/.cache/nvim/nvim-biscuits.log`.

You can turn this on by passing DEBUG=true as an environment variable when launching Neovim.

Expand Down
2 changes: 1 addition & 1 deletion lua/nvim-biscuits/dev.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ local json = require "vendor.json"

local dev = {}

local debug_path = '~/vim-biscuits.log'
local debug_path = vim.fn.stdpath('cache') .. '/nvim-biscuits.log'

dev.console_log = function(the_string)
Path:new(debug_path):write(json.encode(the_string) .. '\n', 'a')
Expand Down

0 comments on commit ed33933

Please sign in to comment.