mirror of
https://github.com/beetbox/beets.git
synced 2026-02-24 16:23:04 +01:00
Use logger.getChild (#1208)
Let the library do the string formatting for us.
This commit is contained in:
parent
f871ef9e21
commit
6d5945daa4
1 changed files with 1 additions and 2 deletions
|
|
@ -62,8 +62,7 @@ class BeetsPlugin(object):
|
|||
self.album_template_fields = {}
|
||||
self.import_stages = []
|
||||
|
||||
logger_name = '{0}.{1}'.format('beets', self.name)
|
||||
self._log = logging.getLogger(logger_name)
|
||||
self._log = log.getChild(self.name)
|
||||
self._log.setLevel(logging.NOTSET) # Use `beets` logger level.
|
||||
|
||||
def commands(self):
|
||||
|
|
|
|||
Loading…
Reference in a new issue