Created
August 15, 2013 02:03
-
-
Save norioxkimura/6237605 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import logging | |
| def main(): | |
| class Filter(object): | |
| def filter(self, record): | |
| msg = record.getMessage() | |
| a = msg.startswith("Calling ") and msg.endswith(':Basic.GetEmpty"') | |
| b = msg.startswith("Processing ") and msg.endswith(":Basic.GetEmpty") | |
| return not (a or b) | |
| logging.basicConfig(level= logging.DEBUG) | |
| logging.getLogger('pika.callback').addFilter(Filter()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment