mirror of
https://github.com/elastic/logstash.git
synced 2025-04-25 07:07:54 -04:00
- add debug monkeypatching
This commit is contained in:
parent
6616e159d5
commit
e2c830078f
2 changed files with 11 additions and 0 deletions
10
lib/logstash/monkeypatches-for-debugging.rb
Normal file
10
lib/logstash/monkeypatches-for-debugging.rb
Normal 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
|
|
@ -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'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue