summaryrefslogtreecommitdiff
path: root/rplugin/python3/deoplete/logger.py
diff options
context:
space:
mode:
authorKoichi Shiraishi <k@zchee.io>2016-03-24 13:10:53 +0900
committerKoichi Shiraishi <k@zchee.io>2016-03-24 13:10:53 +0900
commitf2710f2d10ec4ec3bca4ce307466c5b2073ae2ba (patch)
treed5ab0cbea93cf2a615888b301c9030de802c814c /rplugin/python3/deoplete/logger.py
parent5a48e914ca77c279eee59772d095aa0dfbdef104 (diff)
downloaddeoplete.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.py3
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