Merge pull request #100 from Mandar12/master
Fix: deprecation warning for type
This commit is contained in:
commit
083b214459
@ -7,7 +7,7 @@ connection = pika.BlockingConnection(pika.ConnectionParameters(
|
||||
channel = connection.channel()
|
||||
|
||||
channel.exchange_declare(exchange='logs',
|
||||
type='fanout')
|
||||
exchange_type='fanout')
|
||||
|
||||
message = ' '.join(sys.argv[1:]) or "info: Hello World!"
|
||||
channel.basic_publish(exchange='logs',
|
||||
|
@ -7,7 +7,7 @@ connection = pika.BlockingConnection(pika.ConnectionParameters(
|
||||
channel = connection.channel()
|
||||
|
||||
channel.exchange_declare(exchange='direct_logs',
|
||||
type='direct')
|
||||
exchange_type='direct')
|
||||
|
||||
severity = sys.argv[1] if len(sys.argv) > 1 else 'info'
|
||||
message = ' '.join(sys.argv[2:]) or 'Hello World!'
|
||||
|
@ -7,7 +7,7 @@ connection = pika.BlockingConnection(pika.ConnectionParameters(
|
||||
channel = connection.channel()
|
||||
|
||||
channel.exchange_declare(exchange='topic_logs',
|
||||
type='topic')
|
||||
exchange_type='topic')
|
||||
|
||||
routing_key = sys.argv[1] if len(sys.argv) > 1 else 'anonymous.info'
|
||||
message = ' '.join(sys.argv[2:]) or 'Hello World!'
|
||||
|
@ -6,7 +6,7 @@ connection = pika.BlockingConnection(pika.ConnectionParameters(
|
||||
channel = connection.channel()
|
||||
|
||||
channel.exchange_declare(exchange='logs',
|
||||
type='fanout')
|
||||
exchange_type='fanout')
|
||||
|
||||
result = channel.queue_declare(exclusive=True)
|
||||
queue_name = result.method.queue
|
||||
|
@ -7,7 +7,7 @@ connection = pika.BlockingConnection(pika.ConnectionParameters(
|
||||
channel = connection.channel()
|
||||
|
||||
channel.exchange_declare(exchange='direct_logs',
|
||||
type='direct')
|
||||
exchange_type='direct')
|
||||
|
||||
result = channel.queue_declare(exclusive=True)
|
||||
queue_name = result.method.queue
|
||||
|
@ -7,7 +7,7 @@ connection = pika.BlockingConnection(pika.ConnectionParameters(
|
||||
channel = connection.channel()
|
||||
|
||||
channel.exchange_declare(exchange='topic_logs',
|
||||
type='topic')
|
||||
exchange_type='topic')
|
||||
|
||||
result = channel.queue_declare(exclusive=True)
|
||||
queue_name = result.method.queue
|
||||
|
Loading…
Reference in New Issue
Block a user