diff options
author | Koichi Shiraishi <k@zchee.io> | 2016-03-24 13:10:53 +0900 |
---|---|---|
committer | Koichi Shiraishi <k@zchee.io> | 2016-03-24 13:10:53 +0900 |
commit | f2710f2d10ec4ec3bca4ce307466c5b2073ae2ba (patch) | |
tree | d5ab0cbea93cf2a615888b301c9030de802c814c /rplugin/python3/deoplete/logger.py | |
parent | 5a48e914ca77c279eee59772d095aa0dfbdef104 (diff) | |
download | deoplete.nvim-f2710f2d10ec4ec3bca4ce307466c5b2073ae2ba.zip |
Fix can not get the attributes, and Rename '__logname' to 'name'
Signed-off-by: Koichi Shiraishi <k@zchee.io>
Diffstat (limited to 'rplugin/python3/deoplete/logger.py')
-rw-r--r-- | rplugin/python3/deoplete/logger.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/rplugin/python3/deoplete/logger.py b/rplugin/python3/deoplete/logger.py index d0944c6..37f3742 100644 --- a/rplugin/python3/deoplete/logger.py +++ b/rplugin/python3/deoplete/logger.py @@ -69,8 +69,7 @@ def logmethod(func): if not init or not self.debug_enabled: return if self._logger is None: - self._logger = getLogger( - getattr(self, '__logname', getattr(self, 'name', 'unknown'))) + self._logger = getLogger(getattr(self, 'name', 'unknown')) return func(self, *args, **kwargs) return wrapper |