projects
/
pithos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix DEBUG in dispatcher
[pithos]
/
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
(executable)
--- 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
from optparse import OptionParser
-
BROKER_HOST = 'localhost'
BROKER_PORT = 5672
BROKER_USER = 'guest'
BROKER_HOST = 'localhost'
BROKER_PORT = 5672
BROKER_USER = 'guest'
@@
-52,9
+51,6
@@
CONSUMER_QUEUE = 'feed'
CONSUMER_EXCHANGE = 'sample'
CONSUMER_KEY = '#'
CONSUMER_EXCHANGE = 'sample'
CONSUMER_KEY = '#'
-DEBUG = False
-
-
def main():
parser = OptionParser()
parser.add_option('-v', '--verbose', action='store_true', default=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()
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',
if opts.verbose:
DEBUG = True
logging.basicConfig(format='%(asctime)s [%(levelname)s] %(name)s %(message)s',