mirror of
https://github.com/beetbox/beets.git
synced 2025-12-29 20:12:33 +01:00
Avoid stacking logger prefixes
This commit is contained in:
parent
4d904e20cf
commit
d6a4046245
1 changed files with 3 additions and 1 deletions
|
|
@ -82,7 +82,9 @@ class BeetsPlugin(object):
|
|||
self._log = log.getChild(self.name)
|
||||
self._log.setLevel(logging.NOTSET) # Use `beets` logger level.
|
||||
if beets.config['verbose']:
|
||||
self._log.addFilter(PluginLogFilter(self))
|
||||
if not any(isinstance(f, PluginLogFilter)
|
||||
for f in self._log.filters):
|
||||
self._log.addFilter(PluginLogFilter(self))
|
||||
|
||||
def commands(self):
|
||||
"""Should return a list of beets.ui.Subcommand objects for
|
||||
|
|
|
|||
Loading…
Reference in a new issue