From 0b4293de6e5ad16b4ab667ea8dcf1223a6b8d028 Mon Sep 17 00:00:00 2001 From: Carl Suster Date: Sun, 31 Mar 2019 18:19:09 +1100 Subject: [PATCH] the: log a debug only when text is changed Previously the `the` plugin would log a debug message when the text _didn't_ get changed by the plugin, whereas I think what was intended was the opposite. With this change the logged messages show the actual transformations made by the plugin. --- beetsplug/the.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beetsplug/the.py b/beetsplug/the.py index 83d1089de..238aec32f 100644 --- a/beetsplug/the.py +++ b/beetsplug/the.py @@ -93,8 +93,8 @@ class ThePlugin(BeetsPlugin): for p in self.patterns: r = self.unthe(text, p) if r != text: + self._log.debug(u'\"{0}\" -> \"{1}\"', text, r) break - self._log.debug(u'\"{0}\" -> \"{1}\"', text, r) return r else: return u''