use !r for command exec logging in play plugin

This is a bit simpler and is compatible with py2 and 3.
This commit is contained in:
Johnny Robeson 2016-07-10 06:00:53 -04:00
parent 5107f2e6d2
commit f82f5f51a4

View file

@ -137,8 +137,7 @@ class PlayPlugin(BeetsPlugin):
else:
open_args = [self._create_tmp_playlist(paths)]
self._log.debug(u'executing command: {} {}', command_str,
util.text_string(b' '.join(open_args)))
self._log.debug(u'executing command: {} {!r}', command_str, open_args)
try:
util.interactive_open(open_args, command_str)
except OSError as exc: