controller_filter_logging 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
@@ -20,7 +20,11 @@ module AbstractController::Callbacks::ClassMethods
|
|
20
20
|
define_method("#{filter_name}_with_logging") do
|
21
21
|
Rails.logger.debug("Entering before_filter: #{filter_name}")
|
22
22
|
send(filter_name).tap do |result|
|
23
|
-
|
23
|
+
begin
|
24
|
+
Rails.logger.debug(" result: #{result.inspect}")
|
25
|
+
rescue
|
26
|
+
Rails.logger.debug(" error outputting result: #{$!.class.name}/#{$!.message}")
|
27
|
+
end
|
24
28
|
end
|
25
29
|
end
|
26
30
|
end
|