[oe-commits] Ed Bartosh : wic: Turn off debug output for 'bitbake -e'
git at git.openembedded.org
git at git.openembedded.org
Thu Jul 2 22:08:56 UTC 2015
Module: openembedded-core.git
Branch: master
Commit: 71510c32d78ba24bf1172548f8eb4adfe621d2de
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=71510c32d78ba24bf1172548f8eb4adfe621d2de
Author: Ed Bartosh <ed.bartosh at linux.intel.com>
Date: Sat Jun 27 11:12:50 2015 +0300
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 at linux.intel.com>
---
scripts/lib/wic/utils/oe/misc.py | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/scripts/lib/wic/utils/oe/misc.py b/scripts/lib/wic/utils/oe/misc.py
index 1de6f46..2f9f515 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
More information about the Openembedded-commits
mailing list