Skip to content

Instantly share code, notes, and snippets.

@norioxkimura
Created August 15, 2013 02:03
Show Gist options
  • Select an option

  • Save norioxkimura/6237605 to your computer and use it in GitHub Desktop.

Select an option

Save norioxkimura/6237605 to your computer and use it in GitHub Desktop.
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