When displaying the error from cepces-submit,
make sure to decode the bytes (otherwise it is
hard to read). Also print the error to debug
instead of warn (it may dump a traceback).
Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
stdout=PIPE, stderr=PIPE)
out, err = p.communicate()
if p.returncode != 0:
- logger.warn('Failed to fetch the list of supported templates:' +
- '\n%s' % err)
+ logger.warn('Failed to fetch the list of supported templates.')
+ logger.debug(err.decode())
return out.strip().split()
return []