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

perf(bootstrap): log bootstrap function status

This commit is contained in:
Eric Wong 2024-12-24 11:11:54 +08:00
parent d064660bc1
commit af65682596
2 changed files with 4 additions and 0 deletions

View File

@ -88,7 +88,9 @@ else
call SpaceVim#plugins#projectmanager#RootchandgeCallback()
if !empty(get(g:, '_spacevim_bootstrap_after', ''))
try
call SpaceVim#logger#info('run bootstrap_after function:' . g:_spacevim_bootstrap_after)
call call(g:_spacevim_bootstrap_after, [])
call SpaceVim#logger#info('bootstrap_after function was called successfully.')
let g:_spacevim_bootstrap_after_success = 1
catch
call SpaceVim#logger#error('failed to call bootstrap_after function: ' . g:_spacevim_bootstrap_after)

View File

@ -282,7 +282,9 @@ function! s:apply(config, type) abort
if !empty(bootstrap_before)
try
call SpaceVim#logger#info('run bootstrap_before function:' . bootstrap_before)
call call(bootstrap_before, [])
call SpaceVim#logger#info('bootstrap_before function was called successfully.')
let g:_spacevim_bootstrap_before_success = 1
catch
call SpaceVim#logger#error('bootstrap_before function failed: '