diff options
author | Shougo Matsushita <Shougo.Matsu@gmail.com> | 2016-06-20 20:17:01 +0900 |
---|---|---|
committer | Shougo Matsushita <Shougo.Matsu@gmail.com> | 2016-06-20 20:17:01 +0900 |
commit | 204cec983c037fab2d4a12882c796898c6d7c76f (patch) | |
tree | df0f47c4e2259b904c3b11eab83ed8c05d339e5a /rplugin/python3 | |
parent | 233f2282f41398491d073c23be4fc5bc359289fe (diff) | |
download | deoplete.nvim-204cec983c037fab2d4a12882c796898c6d7c76f.zip |
Remove g:deoplete#enable_debug variable
Diffstat (limited to 'rplugin/python3')
-rw-r--r-- | rplugin/python3/deoplete/logger.py | 3 | ||||
-rw-r--r-- | rplugin/python3/deoplete/util.py | 14 |
2 files changed, 6 insertions, 11 deletions
diff --git a/rplugin/python3/deoplete/logger.py b/rplugin/python3/deoplete/logger.py index 125ecd0..1254a78 100644 --- a/rplugin/python3/deoplete/logger.py +++ b/rplugin/python3/deoplete/logger.py @@ -63,8 +63,7 @@ def setup(vim, level, output_file=None): def logmethod(func): """Decorator for setting up the logger in LoggingMixin subclasses. - This does not guarantee that log messages will be generated. It is - contingent on g:deoplete#enable_debug being set by the user. If + This does not guarantee that log messages will be generated. If `LoggingMixin.debug_enabled` is True, it will be propagated up to the root 'deoplete' logger. """ diff --git a/rplugin/python3/deoplete/util.py b/rplugin/python3/deoplete/util.py index 9f4be0b..5e24659 100644 --- a/rplugin/python3/deoplete/util.py +++ b/rplugin/python3/deoplete/util.py @@ -52,16 +52,12 @@ def globruntime(runtimepath, path): def debug(vim, expr): - if vim.vars['deoplete#enable_debug']: - try: - json_data = json.dumps(str(expr).strip()) - except Exception: - vim.command('echomsg string(\'' + str(expr).strip() + '\')') - else: - vim.command('echomsg string(\'' + escape(json_data) + '\')') - + try: + json_data = json.dumps(str(expr).strip()) + except Exception: + vim.command('echomsg string(\'' + str(expr).strip() + '\')') else: - error(vim, "not in debug mode, but debug called") + vim.command('echomsg string(\'' + escape(json_data) + '\')') def error(vim, msg): |