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

refactor(a.lua): remove debug log

This commit is contained in:
wsdjeg 2022-11-05 22:26:32 +08:00
parent 49e0e52d51
commit 25cc5bfe80

View File

@ -36,14 +36,9 @@ local function cache()
end
local function get_type_path(a, f, b)
logger.debug('run get_type_path function')
logger.debug(fn.string(a))
logger.debug(f)
logger.debug(b)
local begin_len = fn.strlen(a[1])
local end_len = fn.strlen(a[2])
local r = fn.substitute(b, '{}', string.sub(f, begin_len + 1, (end_len+1) * -1), 'g')
logger.debug(r)
return r
end
@ -130,7 +125,6 @@ local function parse(alt_config_json)
if string.match(searchpath, '*') == '*' then
searchpath = string.gsub(searchpath, '*', '**/*')
end
logger.debug('run globpath for: '.. searchpath)
for _,file in pairs(cmp.globpath('.', searchpath)) do
file = sp_file.unify_path(file, ':.')
project_config[alt_config_json.root][file] = {}
@ -153,7 +147,6 @@ local function parse(alt_config_json)
end
end
end
logger.info('Paser done, try to cache alternate info')
cache()
end