wic: Turn off debug output for 'bitbake -e'

Switched debug level to 'normal' to prevent huge 'bitbake -e'
output to go into wic debug output. This should help to make
wic debug info much more clean and easier to read.

(From OE-Core rev: 71510c32d78ba24bf1172548f8eb4adfe621d2de)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Ed Bartosh
2015-06-27 11:12:50 +03:00
committed by Richard Purdie
parent 9ca3472f4f
commit 992f78939e

View File

@@ -122,7 +122,12 @@ def get_bitbake_var(var, image=None):
cmd = "bitbake -e"
if image:
cmd += " %s" % image
log_level = msger.get_loglevel()
msger.set_loglevel('normal')
rc, lines = __exec_cmd(cmd)
msger.set_loglevel(log_level)
if rc:
print "Couldn't get '%s' output." % cmd
print "Bitbake failed with error:\n%s\n" % lines