Use logger.getChild (#1208)

Let the library do the string formatting for us.
This commit is contained in:
Adrian Sampson 2015-01-11 15:08:42 -08:00
parent f871ef9e21
commit 6d5945daa4

View file

@ -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):