summaryrefslogtreecommitdiff
path: root/rplugin/python3/deoplete/logger.py
diff options
context:
space:
mode:
authorDaniel Hahler <git@thequod.de>2018-02-22 22:54:13 +0100
committerDaniel Hahler <git@thequod.de>2018-02-22 22:54:13 +0100
commit97415d5ca1b8191a9a4dc9e279bc7e44feced23b (patch)
tree5f837059f389f6d69cac22799051d42428bda2fb /rplugin/python3/deoplete/logger.py
parent51cfc342e10eeba1c32e455a4205a3346da6fc29 (diff)
downloaddeoplete.nvim-97415d5ca1b8191a9a4dc9e279bc7e44feced23b.zip
logger.setup: only display "Logging to" msg once in Vim
Diffstat (limited to 'rplugin/python3/deoplete/logger.py')
-rw-r--r--rplugin/python3/deoplete/logger.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/rplugin/python3/deoplete/logger.py b/rplugin/python3/deoplete/logger.py
index a7fc926..6a5718c 100644
--- a/rplugin/python3/deoplete/logger.py
+++ b/rplugin/python3/deoplete/logger.py
@@ -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):