diff options
| author | Joshua Watt <JPEWhacker@gmail.com> | 2020-03-09 11:33:45 -0500 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-03-13 11:29:23 +0000 |
| commit | 143685de1b9b0386a4dc8d404bdf342b45b7c030 (patch) | |
| tree | 7ddaa6e7205f6ad823ee3e80a17fdc05f0bcb43c /bitbake/lib/bb/msg.py | |
| parent | 9030edf4af3bb0e8502060bb15e6ca16fbadfe65 (diff) | |
| download | poky-143685de1b9b0386a4dc8d404bdf342b45b7c030.tar.gz | |
bitbake: lib/bb/msg: Remove unused filters
Now that the filter are described using the python logging structure,
these classes are no longer needed.
(Bitbake rev: 2cb16e0c61609f3fb8a86530ddedf8ad0e69428e)
Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/msg.py')
| -rw-r--r-- | bitbake/lib/bb/msg.py | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/bitbake/lib/bb/msg.py b/bitbake/lib/bb/msg.py index 8561826a6e..cab079e333 100644 --- a/bitbake/lib/bb/msg.py +++ b/bitbake/lib/bb/msg.py | |||
| @@ -119,22 +119,6 @@ class BBLogFilter(object): | |||
| 119 | return True | 119 | return True |
| 120 | return False | 120 | return False |
| 121 | 121 | ||
| 122 | class BBLogFilterStdErr(BBLogFilter): | ||
| 123 | def filter(self, record): | ||
| 124 | if not BBLogFilter.filter(self, record): | ||
| 125 | return False | ||
| 126 | if record.levelno >= logging.ERROR: | ||
| 127 | return True | ||
| 128 | return False | ||
| 129 | |||
| 130 | class BBLogFilterStdOut(BBLogFilter): | ||
| 131 | def filter(self, record): | ||
| 132 | if not BBLogFilter.filter(self, record): | ||
| 133 | return False | ||
| 134 | if record.levelno < logging.ERROR: | ||
| 135 | return True | ||
| 136 | return False | ||
| 137 | |||
| 138 | class LogFilterGEQLevel(logging.Filter): | 122 | class LogFilterGEQLevel(logging.Filter): |
| 139 | def __init__(self, level): | 123 | def __init__(self, level): |
| 140 | self.strlevel = str(level) | 124 | self.strlevel = str(level) |
