How to use the queuelib.setup_logging function in queuelib

To help you get started, we’ve selected a few queuelib examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github openrightsgroup / Blocking-Middleware / backend / queue-services / cf-probe.py View on Github external
def main():
    parser = argparse.ArgumentParser()
    parser.add_argument('--verbose','-v', action='store_true')
    parser.add_argument('queue', nargs='?')
    args = parser.parse_args()
    queuelib.setup_logging()
    if args.queue:
        CloudflareProbe.QUEUE_NAME = CloudflareProbe.QUEUE_NAME.replace('.org', '.'+args.queue)
    cfprobe = CloudflareProbe()
    logging.info("Listening on: %s", cfprobe.QUEUE_NAME)
    cfprobe.run()
github openrightsgroup / Blocking-Middleware / backend / queue-services / categoryimporter.py View on Github external
def main():
    queuelib.setup_logging()
    gather = CategoryImporter()
    gather.run()
github openrightsgroup / Blocking-Middleware / backend / queue-services / whois-lookup.py View on Github external
def main():
    queuelib.setup_logging()
    whois = WhoisLookup()
    whois.run()
github openrightsgroup / Blocking-Middleware / backend / queue-services / metadata-gather.py View on Github external
def main():
    queuelib.setup_logging()
    gather = MetadataGatherer()
    gather.run()