From 3f4f0772729a2890ecb8d45d5539830bea5f1eb0 Mon Sep 17 00:00:00 2001 From: Adrian Sampson Date: Sun, 3 Apr 2016 17:38:40 -0400 Subject: [PATCH] edit: Log the invoked command --- beetsplug/edit.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/beetsplug/edit.py b/beetsplug/edit.py index 58d0828a5..191091295 100644 --- a/beetsplug/edit.py +++ b/beetsplug/edit.py @@ -40,11 +40,12 @@ class ParseError(Exception): """ -def edit(filename): +def edit(filename, log): """Open `filename` in a text editor. """ cmd = util.shlex_split(util.editor_command()) cmd.append(filename) + log.debug(u'invoking editor command: {!r}', cmd) subprocess.call(cmd) @@ -245,7 +246,7 @@ class EditPlugin(plugins.BeetsPlugin): try: while True: # Ask the user to edit the data. - edit(new.name) + edit(new.name, self._log) # Read the data back after editing and check whether anything # changed.