Revision 47218019 snf-pithos-tools/pithos/tools/dispatcher.py
b/snf-pithos-tools/pithos/tools/dispatcher.py | ||
---|---|---|
41 | 41 |
|
42 | 42 |
from optparse import OptionParser |
43 | 43 |
|
44 |
|
|
45 | 44 |
BROKER_HOST = 'localhost' |
46 | 45 |
BROKER_PORT = 5672 |
47 | 46 |
BROKER_USER = 'guest' |
... | ... | |
52 | 51 |
CONSUMER_EXCHANGE = 'sample' |
53 | 52 |
CONSUMER_KEY = '#' |
54 | 53 |
|
55 |
DEBUG = False |
|
56 |
|
|
57 |
|
|
58 | 54 |
def main(): |
59 | 55 |
parser = OptionParser() |
60 | 56 |
parser.add_option('-v', '--verbose', action='store_true', default=False, |
... | ... | |
81 | 77 |
dest='test', help='Produce a dummy message for testing') |
82 | 78 |
opts, args = parser.parse_args() |
83 | 79 |
|
80 |
DEBUG = False |
|
84 | 81 |
if opts.verbose: |
85 | 82 |
DEBUG = True |
86 | 83 |
logging.basicConfig(format='%(asctime)s [%(levelname)s] %(name)s %(message)s', |
Also available in: Unified diff