From 487e8fe155cc8507da750f0607c772279c58e265 Mon Sep 17 00:00:00 2001 From: Jordan Sissel Date: Wed, 17 Apr 2013 12:28:29 -0700 Subject: [PATCH] - debug load() calls with DEBUG=require, too --- lib/logstash/monkeypatches-for-debugging.rb | 7 +++++++ 1 file changed, 7 insertions(+) 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