在设置消息广播时:以下代码会报错
channel.exchange_declare(exchange='direct_logs',
type='direct')
TypeError: exchange_declare() got an unexpected keyword argument 'type'
可能给python3.6 type 是关健字 后改成:
channel.exchange_declare(exchange='logs', exchange_type='fanout')
就解决了