summaryrefslogtreecommitdiff
path: root/scripts/lib/wic/utils
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2015-06-27 11:12:50 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-07-02 23:01:23 +0100
commit71510c32d78ba24bf1172548f8eb4adfe621d2de (patch)
treeed67fe58cb2ec6ff647313a5bbbe3956bdbeab92 /scripts/lib/wic/utils
parente6ed2e07d70eaa07d4c2ab9e484eacedd193323e (diff)
downloadopenembedded-core-71510c32d78ba24bf1172548f8eb4adfe621d2de.tar.gz
openembedded-core-71510c32d78ba24bf1172548f8eb4adfe621d2de.tar.bz2
openembedded-core-71510c32d78ba24bf1172548f8eb4adfe621d2de.zip
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. Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Diffstat (limited to 'scripts/lib/wic/utils')
-rw-r--r--scripts/lib/wic/utils/oe/misc.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/lib/wic/utils/oe/misc.py b/scripts/lib/wic/utils/oe/misc.py
index 1de6f46a38..2f9f515cf8 100644
--- a/scripts/lib/wic/utils/oe/misc.py
+++ b/scripts/lib/wic/utils/oe/misc.py
@@ -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