remote#host#RequirePythonHost: fix reference to log

I could not find a reference to NVIM_PYTHON_PYTHON_LOG anywhere, and
python-client looks for NVIM_PYTHON_LOG_FILE.

~/.nvimlog appears to be hardcoded and enabled by default.  This would
need to be adjusted when this changes.
This commit is contained in:
Daniel Hahler 2015-05-08 12:09:59 +02:00 committed by Florian Walch
parent 2111f28fc5
commit 8d42db1eea

View File

@ -214,10 +214,12 @@ function! s:RequirePythonHost(name)
catch
echomsg v:exception
endtry
throw 'Failed to load python host. You can try to see what happened ' .
\ 'by starting Neovim with $NVIM_PYTHON_PYTHON_LOG and opening '.
throw 'Failed to load Python host. You can try to see what happened '.
\ 'by starting Neovim with the environment variable '.
\ '$NVIM_PYTHON_LOG_FILE set to a file and opening '.
\ 'the generated log file. Also, the host stderr will be available '.
\ 'in Neovim log, so it may contain useful information.'
\ 'in Neovim log, so it may contain useful information. '.
\ 'See also ~/.nvimlog.'
endfunction
call remote#host#Register('python', function('s:RequirePythonHost'))