external-run: use debug messages, not warnings

While these messages are useful when debugging, the warnings clutter up the
log due to running before our sanity checks, potentially confusing the user.

Signed-off-by: Christopher Larson <kergoth@gmail.com>
This commit is contained in:
Christopher Larson
2015-04-20 13:16:10 -07:00
parent 325a4e57ac
commit 6ffb77e4c9

View File

@@ -12,10 +12,10 @@ def external_run(d, cmd, *args):
output = oe.path.check_output(args, cwd=topdir, stderr=subprocess.STDOUT)
except oe.path.CalledProcessError as exc:
import pipes
bb.warn("{0} failed: {1}".format(' '.join(pipes.quote(a) for a in args), exc.output))
bb.debug(1, "{0} failed: {1}".format(' '.join(pipes.quote(a) for a in args), exc.output))
except OSError as exc:
import pipes
bb.warn("{0} failed: {1}".format(' '.join(pipes.quote(a) for a in args), str(exc)))
bb.debug(1, "{0} failed: {1}".format(' '.join(pipes.quote(a) for a in args), str(exc)))
else:
return output