Skip to content

Commit

Permalink
Pass ycmd logging level to JediHTTP
Browse files Browse the repository at this point in the history
  • Loading branch information
micbou committed Jun 2, 2016
1 parent 65f1987 commit 1c8f514
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion third_party/JediHTTP
3 changes: 3 additions & 0 deletions ycmd/completers/python/jedi_completer.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,12 @@ def _StartServer( self ):
json.dump( { 'hmac_secret': ToUnicode(
b64encode( self._hmac_secret ) ) },
hmac_file )
log_level = logging.getLevelName(
self._logger.getEffectiveLevel() ).lower()
command = [ self._python_binary_path,
PATH_TO_JEDIHTTP,
'--port', str( self._jedihttp_port ),
'--log', log_level,
'--hmac-file-secret', hmac_file.name ]

self._logfile_stdout = LOG_FILENAME_FORMAT.format(
Expand Down

0 comments on commit 1c8f514

Please sign in to comment.