From 7372ad4831e354c00d2c36f36f8cc8ddb540384a Mon Sep 17 00:00:00 2001 From: Adrian Sampson Date: Sun, 12 Apr 2015 23:01:44 -0700 Subject: [PATCH] replaygain: Log bs1770gain invocations For clearer debugging in #1398. --- beetsplug/replaygain.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/beetsplug/replaygain.py b/beetsplug/replaygain.py index 3fbc3e5d5..e07117609 100644 --- a/beetsplug/replaygain.py +++ b/beetsplug/replaygain.py @@ -196,8 +196,11 @@ class Bs1770gainBackend(Backend): # Workaround for Windows: the underlying tool fails on paths # with the \\?\ prefix, so we don't use it here. This # prevents the backend from working with long paths. - output = call(cmd + - [syspath(i.path, prefix=False) for i in items]) + args = cmd + [syspath(i.path, prefix=False) for i in items] + + # Invoke the command. + self._log.debug("executing {0}", " ".join(map(displayable_path, args))) + output = call(args) self._log.debug(u'analysis finished: {0}', output) results = self.parse_tool_output(output,