Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update default path for debug logging #31

Merged
merged 1 commit into from
May 31, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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