Skip to content

Commit

Permalink
Merge pull request #664 from blueyed/logging-notify-once
Browse files Browse the repository at this point in the history
logger.setup: only display "Logging to" msg once in Vim
  • Loading branch information
Shougo authored Feb 25, 2018
2 parents df96c8a + 97415d5 commit d588857
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion rplugin/python3/deoplete/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,11 @@ def setup(vim, level, output_file=None):
vim.call('deoplete#util#neovim_version'),
'.'.join(map(str, sys.version_info[:3])),
neovim_version)
vim.call('deoplete#util#print_debug', 'Logging to %s' % output_file)

if not vim.vars.get('deoplete#_logging_notified'):
vim.vars['deoplete#_logging_notified'] = 1
vim.call('deoplete#util#print_debug', 'Logging to %s' % (
output_file))


def logmethod(func):
Expand Down

0 comments on commit d588857

Please sign in to comment.