diff options
-rw-r--r-- | bitbake/lib/bb/cooker.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index a05630d52d..2d937a413c 100644 --- a/bitbake/lib/bb/cooker.py +++ b/bitbake/lib/bb/cooker.py | |||
@@ -1949,6 +1949,7 @@ class Parser(multiprocessing.Process): | |||
1949 | 1949 | ||
1950 | def parse(self, filename, appends): | 1950 | def parse(self, filename, appends): |
1951 | try: | 1951 | try: |
1952 | origfilter = bb.event.LogHandler.filter | ||
1952 | # Record the filename we're parsing into any events generated | 1953 | # Record the filename we're parsing into any events generated |
1953 | def parse_filter(self, record): | 1954 | def parse_filter(self, record): |
1954 | record.taskpid = bb.event.worker_pid | 1955 | record.taskpid = bb.event.worker_pid |
@@ -1971,6 +1972,8 @@ class Parser(multiprocessing.Process): | |||
1971 | # a SystemExit event for example. | 1972 | # a SystemExit event for example. |
1972 | except BaseException as exc: | 1973 | except BaseException as exc: |
1973 | return True, ParsingFailure(exc, filename) | 1974 | return True, ParsingFailure(exc, filename) |
1975 | finally: | ||
1976 | bb.event.LogHandler.filter = origfilter | ||
1974 | 1977 | ||
1975 | class CookerParser(object): | 1978 | class CookerParser(object): |
1976 | def __init__(self, cooker, filelist, masked): | 1979 | def __init__(self, cooker, filelist, masked): |