diff options
Diffstat (limited to 'bitbake/lib/bb/build.py')
| -rw-r--r-- | bitbake/lib/bb/build.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/bitbake/lib/bb/build.py b/bitbake/lib/bb/build.py index 17c70d0a61..aaada8a18b 100644 --- a/bitbake/lib/bb/build.py +++ b/bitbake/lib/bb/build.py | |||
| @@ -27,6 +27,9 @@ from bb import data, event, utils | |||
| 27 | bblogger = logging.getLogger('BitBake') | 27 | bblogger = logging.getLogger('BitBake') |
| 28 | logger = logging.getLogger('BitBake.Build') | 28 | logger = logging.getLogger('BitBake.Build') |
| 29 | 29 | ||
| 30 | verboseShellLogging = False | ||
| 31 | verboseStdoutLogging = False | ||
| 32 | |||
| 30 | __mtime_cache = {} | 33 | __mtime_cache = {} |
| 31 | 34 | ||
| 32 | def cached_mtime_noerror(f): | 35 | def cached_mtime_noerror(f): |
| @@ -371,7 +374,7 @@ def exec_func_shell(func, d, runfile, cwd=None): | |||
| 371 | 374 | ||
| 372 | bb.data.emit_func(func, script, d) | 375 | bb.data.emit_func(func, script, d) |
| 373 | 376 | ||
| 374 | if bb.msg.loggerVerboseLogs: | 377 | if verboseShellLogging or bb.utils.to_boolean(d.getVar("BB_VERBOSE_LOGS", False)): |
| 375 | script.write("set -x\n") | 378 | script.write("set -x\n") |
| 376 | if cwd: | 379 | if cwd: |
| 377 | script.write("cd '%s'\n" % cwd) | 380 | script.write("cd '%s'\n" % cwd) |
| @@ -391,7 +394,7 @@ exit $ret | |||
| 391 | if fakerootcmd: | 394 | if fakerootcmd: |
| 392 | cmd = [fakerootcmd, runfile] | 395 | cmd = [fakerootcmd, runfile] |
| 393 | 396 | ||
| 394 | if bb.msg.loggerDefaultVerbose: | 397 | if verboseStdoutLogging: |
| 395 | logfile = LogTee(logger, StdoutNoopContextManager()) | 398 | logfile = LogTee(logger, StdoutNoopContextManager()) |
| 396 | else: | 399 | else: |
| 397 | logfile = StdoutNoopContextManager() | 400 | logfile = StdoutNoopContextManager() |
