X-Git-Url: https://code.grnet.gr/git/pithos/blobdiff_plain/413448f176167a7dcdf4be028e0de64afb006e8d..47218019406b6bce8b74292d15a6cbe9b0ac9537:/snf-pithos-tools/pithos/tools/dispatcher.py diff --git a/snf-pithos-tools/pithos/tools/dispatcher.py b/snf-pithos-tools/pithos/tools/dispatcher.py index 21fed0c..0aa97cf 100755 --- a/snf-pithos-tools/pithos/tools/dispatcher.py +++ b/snf-pithos-tools/pithos/tools/dispatcher.py @@ -41,7 +41,6 @@ from synnefo.lib.queue import (exchange_connect, exchange_close, from optparse import OptionParser - BROKER_HOST = 'localhost' BROKER_PORT = 5672 BROKER_USER = 'guest' @@ -52,9 +51,6 @@ CONSUMER_QUEUE = 'feed' CONSUMER_EXCHANGE = 'sample' CONSUMER_KEY = '#' -DEBUG = False - - def main(): parser = OptionParser() parser.add_option('-v', '--verbose', action='store_true', default=False, @@ -81,6 +77,7 @@ def main(): 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',