verbose logging

This commit is contained in:
gmarik 2011-08-07 22:04:36 -05:00
parent db8c5d5d62
commit 42f5825f70

View File

@ -131,6 +131,10 @@ func! s:sync(bang, bundle) abort
endif
let out = s:system(cmd)
call s:log('')
call s:log('Bundle '.a:bundle.name_spec)
call s:log('$ '.cmd)
call s:log('> '.out)
if 0 != v:shell_error
return 'error'
@ -144,7 +148,7 @@ func! s:sync(bang, bundle) abort
endf
func! s:system(cmd) abort
return s:log(system(a:cmd))
return system(a:cmd)
endf
func! s:log(str) abort