- add debug monkeypatching

This commit is contained in:
Jordan Sissel 2013-04-08 23:10:45 -07:00
parent 6616e159d5
commit e2c830078f
2 changed files with 11 additions and 0 deletions

View file

@ -0,0 +1,10 @@
if $DEBUGLIST.include?("require")
module Kernel
alias_method :require_debug, :require
def require(path)
puts "require(\"#{path}\")"
return require_debug(path)
end
end
end

View file

@ -38,6 +38,7 @@ end
require "logstash/monkeypatches-for-performance" require "logstash/monkeypatches-for-performance"
require "logstash/monkeypatches-for-bugs" require "logstash/monkeypatches-for-bugs"
require "logstash/monkeypatches-for-debugging"
require "logstash/namespace" require "logstash/namespace"
require "logstash/program" require "logstash/program"
require "i18n" # gem 'i18n' require "i18n" # gem 'i18n'