refactor: do not log in file when it dont have to
This commit is contained in:
parent
ed34cd1dd9
commit
7da0a7e492
2 changed files with 3 additions and 2 deletions
3
.github/workflows/tests.yml
vendored
3
.github/workflows/tests.yml
vendored
|
|
@ -9,6 +9,8 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
tests:
|
tests:
|
||||||
|
env:
|
||||||
|
GOPHER_LOG_USE_FILE: false
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest]
|
os: [ubuntu-latest]
|
||||||
|
|
@ -43,7 +45,6 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
nvim --version
|
nvim --version
|
||||||
task ci:install-deps
|
task ci:install-deps
|
||||||
echo "$HOME/go/bin" >> $GITHUB_PATH
|
|
||||||
|
|
||||||
- name: Run Tests
|
- name: Run Tests
|
||||||
run: |
|
run: |
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@ local config = {
|
||||||
highlights = true,
|
highlights = true,
|
||||||
|
|
||||||
-- Should write to a file
|
-- Should write to a file
|
||||||
use_file = true,
|
use_file = vim.env.GOPHER_LOG_USE_FILE ~= "false",
|
||||||
|
|
||||||
-- Level configuration
|
-- Level configuration
|
||||||
modes = {
|
modes = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue