Skip to content

Instantly share code, notes, and snippets.

@Zhomart
Created April 29, 2014 03:08
Show Gist options
  • Save Zhomart/11389807 to your computer and use it in GitHub Desktop.
Save Zhomart/11389807 to your computer and use it in GitHub Desktop.
$ ruby a.rb
1.2.1
D, [2014-04-28T20:03:13.097850 #95992] DEBUG -- #<Bunny::Session:2156599120 [email protected]:5672, vhost=/>: Sent protocol preamble
D, [2014-04-28T20:03:13.098368 #95992] DEBUG -- #<Bunny::Session:2156599120 [email protected]:5672, vhost=/>: Sent connection.start-ok
D, [2014-04-28T20:03:13.098532 #95992] DEBUG -- #<Bunny::Session:2156599120 [email protected]:5672, vhost=/>: Heartbeat interval negotiation: client = server, server = 580, result = 580
I, [2014-04-28T20:03:13.098570 #95992] INFO -- #<Bunny::Session:2156599120 [email protected]:5672, vhost=/>: Heartbeat interval used (in seconds): 580
D, [2014-04-28T20:03:13.098809 #95992] DEBUG -- #<Bunny::Session:2156599120 [email protected]:5672, vhost=/>: Sent connection.tune-ok with heartbeat interval = 580, frame_max = 131072, channel_max = 65535
D, [2014-04-28T20:03:13.098965 #95992] DEBUG -- #<Bunny::Session:2156599120 [email protected]:5672, vhost=/>: Sent connection.open with vhost = /
D, [2014-04-28T20:03:13.099046 #95992] DEBUG -- #<Bunny::Session:2156599120 [email protected]:5672, vhost=/>: Initializing heartbeat sender...
D, [2014-04-28T20:03:13.099783 #95992] DEBUG -- #<Bunny::Session:2156599120 [email protected]:5672, vhost=/>: Session#handle_frame on 1: #<AMQ::Protocol::Channel::OpenOk:0x00000101142768 @channel_id="">
D, [2014-04-28T20:03:13.100408 #95992] DEBUG -- #<Bunny::Session:2156599120 [email protected]:5672, vhost=/>: Session#handle_frame on 2: #<AMQ::Protocol::Channel::OpenOk:0x0000010113aa40 @channel_id="">
D, [2014-04-28T20:03:13.101034 #95992] DEBUG -- #<Bunny::Session:2156599120 [email protected]:5672, vhost=/>: Session#handle_frame on 3: #<AMQ::Protocol::Channel::OpenOk:0x000001011325c0 @channel_id="">
D, [2014-04-28T20:03:13.101785 #95992] DEBUG -- #<Bunny::Session:2156599120 [email protected]:5672, vhost=/>: Session#handle_frame on 2: #<AMQ::Protocol::Exchange::DeclareOk:0x0000010112ad20>
D, [2014-04-28T20:03:13.101833 #95992] DEBUG -- #<Bunny::Session:2156599120 [email protected]:5672, vhost=/>: Channel#handle_frame on channel 2: #<AMQ::Protocol::Exchange::DeclareOk:0x0000010112ad20>
D, [2014-04-28T20:03:13.102195 #95992] DEBUG -- #<Bunny::Session:2156599120 [email protected]:5672, vhost=/>: Session#handle_frame on 3: #<AMQ::Protocol::Exchange::DeclareOk:0x00000101121d88>
D, [2014-04-28T20:03:13.102231 #95992] DEBUG -- #<Bunny::Session:2156599120 [email protected]:5672, vhost=/>: Channel#handle_frame on channel 3: #<AMQ::Protocol::Exchange::DeclareOk:0x00000101121d88>
Trying to send to 'gothic.exchanges.direct.ci': {:id=>"7ub6fgkbm2i5c1lwc3j30lmo9ula0ptk", :data=>{:words=>["goat", "hoax", "jelly", "kitty", "post"], :pair=>["jelly", "k by pair_it
Sent to pair_it | gothic.exchanges.direct.ci
D, [2014-04-28T20:03:13.103669 #95992] DEBUG -- #<Bunny::Session:2156599120 [email protected]:5672, vhost=/>: Session#handle_frame on 2: #<AMQ::Protocol::Queue::DeclareOk:0x000001011128d8 @queue="amq.gen-RUIFtnfc0zm3Bjwh4fQuxQ", @message_count=0, @consumer_count=0>
D, [2014-04-28T20:03:13.103736 #95992] DEBUG -- #<Bunny::Session:2156599120 [email protected]:5672, vhost=/>: Channel#handle_frame on channel 2: #<AMQ::Protocol::Queue::DeclareOk:0x000001011128d8 @queue="amq.gen-RUIFtnfc0zm3Bjwh4fQuxQ", @message_count=0, @consumer_count=0>
D, [2014-04-28T20:03:13.104572 #95992] DEBUG -- #<Bunny::Session:2156599120 [email protected]:5672, vhost=/>: Session#handle_frame on 2: #<AMQ::Protocol::Queue::BindOk:0x000001010e6ee0>
D, [2014-04-28T20:03:13.104630 #95992] DEBUG -- #<Bunny::Session:2156599120 [email protected]:5672, vhost=/>: Channel#handle_frame on channel 2: #<AMQ::Protocol::Queue::BindOk:0x000001010e6ee0>
D, [2014-04-28T20:03:13.105268 #95992] DEBUG -- #<Bunny::Session:2156599120 [email protected]:5672, vhost=/>: Session#handle_frame on 2: #<AMQ::Protocol::Basic::ConsumeOk:0x000001010ded30 @consumer_tag="bunny-1398740593000-969251472947">
D, [2014-04-28T20:03:13.105319 #95992] DEBUG -- #<Bunny::Session:2156599120 [email protected]:5672, vhost=/>: Channel#handle_frame on channel 2: #<AMQ::Protocol::Basic::ConsumeOk:0x000001010ded30 @consumer_tag="bunny-1398740593000-969251472947">
sent: #<Bunny::Consumer:2156340180 @channel_id=2 @queue=amq.gen-RUIFtnfc0zm3Bjwh4fQuxQ> @consumer_tag=bunny-1398740593000-969251472947>
Got: {"request_id":"7ub6fgkbm2i5c1lwc3j30lmo9ula0ptk","finished_in":0.022845,"result":{ ... },"description":" ... "}
for request: 7ub6fgkbm2i5c1lwc3j30lmo9ula0ptk
canceling result consumer: #<Bunny::Consumer:2156340180 @channel_id=2 @queue=amq.gen-RUIFtnfc0zm3Bjwh4fQuxQ> @consumer_tag=bunny-1398740593000-969251472947>
D, [2014-04-28T20:03:13.163107 #95992] DEBUG -- #<Bunny::Session:2156599120 [email protected]:5672, vhost=/>: Session#handle_frame on 2: #<AMQ::Protocol::Basic::CancelOk:0x000001010cf768 @consumer_tag="bunny-1398740593000-969251472947">
D, [2014-04-28T20:03:13.163225 #95992] DEBUG -- #<Bunny::Session:2156599120 [email protected]:5672, vhost=/>: Channel#handle_frame on channel 2: #<AMQ::Protocol::Basic::CancelOk:0x000001010cf768 @consumer_tag="bunny-1398740593000-969251472947">
# after waiting ~15 seconds, I've stopped script by pressing ^C
^Ca.rb:70:in `sleep': Interrupt
from a.rb:70:in `<main>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment