diff --git a/lib/logstash/monkeypatches-for-debugging.rb b/lib/logstash/monkeypatches-for-debugging.rb index 2c0ea6d79..567b2c7bf 100644 --- a/lib/logstash/monkeypatches-for-debugging.rb +++ b/lib/logstash/monkeypatches-for-debugging.rb @@ -6,5 +6,12 @@ if $DEBUGLIST.include?("require") puts "require(\"#{path}\")" return require_debug(path) end + + alias_method :load_debug, :load + + def load(path) + puts "load(\"#{path}\")" + return load_debug(path) + end end end