1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 17:30:04 +08:00

fix(project): enable debug mode of logger

This commit is contained in:
wsdjeg 2023-04-23 11:32:02 +08:00
parent f1c5d9890a
commit f4b92a7183
2 changed files with 6 additions and 0 deletions

View File

@ -61,6 +61,7 @@ else
" the name projectmanager is too long " the name projectmanager is too long
" use rooter instead " use rooter instead
let s:LOGGER =SpaceVim#logger#derive('rooter') let s:LOGGER =SpaceVim#logger#derive('rooter')
call s:LOGGER.start_debug()
let s:TIME = SpaceVim#api#import('time') let s:TIME = SpaceVim#api#import('time')
let s:JSON = SpaceVim#api#import('data#json') let s:JSON = SpaceVim#api#import('data#json')
let s:LIST = SpaceVim#api#import('data#list') let s:LIST = SpaceVim#api#import('data#list')

View File

@ -7,6 +7,11 @@
--============================================================================= --=============================================================================
local logger = require('spacevim.logger').derive('project') local logger = require('spacevim.logger').derive('project')
-- start debug mode
logger.start_debug()
local sp = require('spacevim') local sp = require('spacevim')
local sp_file = require('spacevim.api.file') local sp_file = require('spacevim.api.file')
local sp_json = require('spacevim.api.data.json') local sp_json = require('spacevim.api.data.json')