from optparse import OptionParser
-
BROKER_HOST = 'localhost'
BROKER_PORT = 5672
BROKER_USER = 'guest'
CONSUMER_EXCHANGE = 'sample'
CONSUMER_KEY = '#'
-DEBUG = False
-
-
def main():
parser = OptionParser()
parser.add_option('-v', '--verbose', action='store_true', default=False,
dest='test', help='Produce a dummy message for testing')
opts, args = parser.parse_args()
+ DEBUG = False
if opts.verbose:
DEBUG = True
logging.basicConfig(format='%(asctime)s [%(levelname)s] %(name)s %(message)s',