[oe-commits] [bitbake] 07/17: bitbake: lib/bb/msg.py: Remove unused filters

git at git.openembedded.org git at git.openembedded.org
Mon Mar 9 22:52:51 UTC 2020


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository bitbake.

commit ac0fd90dc8ef41b70af9184627cd993d0c35ddbc
Author: Joshua Watt <JPEWhacker at gmail.com>
AuthorDate: Mon Mar 9 11:33:45 2020 -0500

    bitbake: lib/bb/msg.py: Remove unused filters
    
    Now that the filter are described using the python logging structure,
    these classes are no longer needed.
    
    Signed-off-by: Joshua Watt <JPEWhacker at gmail.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 lib/bb/msg.py | 16 ----------------
 1 file changed, 16 deletions(-)

diff --git a/lib/bb/msg.py b/lib/bb/msg.py
index 8561826..cab079e 100644
--- a/lib/bb/msg.py
+++ b/lib/bb/msg.py
@@ -119,22 +119,6 @@ class BBLogFilter(object):
             return True
         return False
 
-class BBLogFilterStdErr(BBLogFilter):
-    def filter(self, record):
-        if not BBLogFilter.filter(self, record):
-            return False
-        if record.levelno >= logging.ERROR:
-            return True
-        return False
-
-class BBLogFilterStdOut(BBLogFilter):
-    def filter(self, record):
-        if not BBLogFilter.filter(self, record):
-            return False
-        if record.levelno < logging.ERROR:
-            return True
-        return False
-
 class LogFilterGEQLevel(logging.Filter):
     def __init__(self, level):
         self.strlevel = str(level)

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list