Add simple logging.

This commit is contained in:
Andy Stewart
2016-04-25 13:19:50 +01:00
parent 52d1167d7d
commit 4bed1da648
6 changed files with 28 additions and 3 deletions

View File

@@ -134,9 +134,11 @@ function! gitgutter#diff#run_diff(realtime, preserve_full_diff)
\ 'on_stderr': function('gitgutter#handle_diff_job'),
\ 'on_exit': function('gitgutter#handle_diff_job')
\ })
call gitgutter#debug#log('[job_id: '.job_id.'] '.cmd)
if job_id < 1
throw 'diff failed'
endif
call gitgutter#utility#pending_job(job_id)
return 'async'
else