Skip to content

Commit

Permalink
explicit client/server mode for logger example
Browse files Browse the repository at this point in the history
  • Loading branch information
tmm1 committed Dec 25, 2008
1 parent d2cbf1e commit 8d5928a
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions examples/mq/logger.rb
Expand Up @@ -13,8 +13,8 @@
pp(msg)
puts
}
else

elsif ARGV[0] == 'client'

log = Logger.new
log.debug 'its working!'
Expand All @@ -39,6 +39,16 @@

AMQP.stop{ EM.stop_event_loop }

else

puts
puts "#{$0} <client|server>"
puts " client: send logs to message queue"
puts " server: read logs from message queue"
puts

EM.stop

end
}

Expand Down

0 comments on commit 8d5928a

Please sign in to comment.