diff options
Diffstat (limited to 'bitbake/lib/bb/build.py')
-rw-r--r-- | bitbake/lib/bb/build.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/build.py b/bitbake/lib/bb/build.py index 96e4e2f07..2d8fe8be8 100644 --- a/bitbake/lib/bb/build.py +++ b/bitbake/lib/bb/build.py @@ -216,7 +216,7 @@ def exec_func_shell(function, d, runfile, cwd=None): with open(runfile, 'w') as script: script.write('#!/bin/sh -e\n') - if logger.getEffectiveLevel() <= logging.DEBUG: + if logger.isEnabledFor(logging.DEBUG): script.write("set -x\n") data.emit_func(function, script, d) @@ -230,7 +230,7 @@ def exec_func_shell(function, d, runfile, cwd=None): cmd = runfile - if logger.getEffectiveLevel() <= logging.DEBUG: + if logger.isEnabledFor(logging.DEBUG): logfile = LogTee(logger, sys.stdout) else: logfile = sys.stdout |