add option to log amqp messages