]> code.ossystems Code Review - openembedded-core.git/commitdiff
wic: Turn off debug output for 'bitbake -e'
authorEd Bartosh <ed.bartosh@linux.intel.com>
Sat, 27 Jun 2015 08:12:50 +0000 (11:12 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 2 Jul 2015 22:01:23 +0000 (23:01 +0100)
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>
scripts/lib/wic/utils/oe/misc.py

index 1de6f46a384e15d235ddc273685ec57682ad1744..2f9f515cf8ab6a63f0ea429a3a3091581694eccf 100644 (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