fix DEBUG in dispatcher
[pithos] / snf-pithos-tools / pithos / tools / dispatcher.py
index 21fed0c..0aa97cf 100755 (executable)
@@ -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',