1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-04-15 08:09:11 +08:00

pref(a.vim): change logger level

This commit is contained in:
Shidong Wang 2021-10-29 21:00:37 +08:00
parent be7d6130d6
commit d4597c97d0
No known key found for this signature in database
GPG Key ID: 41BB7053E835C848
2 changed files with 6 additions and 6 deletions

View File

@ -199,12 +199,12 @@ else
" so we need to use sort, and make sure `docs/cn/*.md` is parsed after
" docs/*.md
for key in sort(keys(a:alt_config_json.config))
call s:LOGGER.info('start parse key:' . key)
call s:LOGGER.debug('start parse key:' . key)
let searchpath = key
if match(searchpath, '/\*')
let searchpath = substitute(searchpath, '*', '**/*', 'g')
endif
call s:LOGGER.info('run globpath for: '. searchpath)
call s:LOGGER.debug('run globpath for: '. searchpath)
for file in s:CMP.globpath('.', searchpath)
let file = s:FILE.unify_path(file, ':.')
let s:project_config[a:alt_config_json.root][file] = {}

View File

@ -20,7 +20,7 @@ local function cache()
end
local function get_type_path(a, f, b)
logger.debug('get_type_path')
logger.debug('run get_type_path function')
logger.debug(fn.string(a))
logger.debug(f)
logger.debug(b)
@ -107,17 +107,17 @@ local function _comp(a, b)
end
local function parse(alt_config_json)
logger.debug('Start to parse alternate file for:' .. alt_config_json.root)
logger.info('Start to parse alternate file for:' .. alt_config_json.root)
project_config[alt_config_json.root] = {}
local keys = _keys(alt_config_json.config)
table.sort(keys, _comp)
for _, key in pairs(keys) do
logger.info('start parse key:' .. key)
logger.debug('start parse key:' .. key)
local searchpath = key
if string.match(searchpath, '*') == '*' then
searchpath = string.gsub(searchpath, '*', '**/*')
end
logger.info('run globpath for: '.. searchpath)
logger.debug('run globpath for: '.. searchpath)
for _,file in pairs(cmp.globpath('.', searchpath)) do
file = sp_file.unify_path(file, ':.')
logger.debug(file)