summaryrefslogtreecommitdiffstats
path: root/lib/bb/build.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bb/build.py')
-rw-r--r--lib/bb/build.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/bb/build.py b/lib/bb/build.py
index 1c73ae26f..586867fd9 100644
--- a/lib/bb/build.py
+++ b/lib/bb/build.py
@@ -236,7 +236,7 @@ def exec_func_shell(function, d, runfile, cwd=None):
if fakerootcmd:
cmd = [fakerootcmd, runfile]
- if logger.isEnabledFor(logging.DEBUG):
+ if bb.msg.loggerVerbose[1]:
logfile = LogTee(logger, sys.stdout)
else:
logfile = sys.stdout
@@ -310,6 +310,8 @@ def _exec_task(fn, task, d, quieterr):
# Ensure python logging goes to the logfile
handler = logging.StreamHandler(logfile)
handler.setFormatter(logformatter)
+ # Always enable full debug output into task logfiles
+ handler.setLevel(logging.DEBUG - 2)
bblogger.addHandler(handler)
localdata.setVar('BB_LOGFILE', logfn)