This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/home/mqtester/.rvm/wrappers/ruby-1.9.2-p290@mqtester/ruby | |
| # encoding: utf-8 | |
| require "rubygems" | |
| require "amqp" | |
| @exchange_name = "amq.rabbitmq.trace" | |
| class Consumer | |
| def handle_message(metadata, payload) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # config/initializers/clear_logs.rb | |
| # This snippet simply clears your logs when they are too large. | |
| # Large logs mean looooong search in TextMate. You know it :) | |
| # Every time you run rails server or rails console it checks log sizes | |
| # and clears the logs for you if necessary. | |
| if Rails.env.development? | |
| MAX_LOG_SIZE = 2.megabytes | |