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
- Rails.logger.debug(" result: #{result.inspect}")
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
@@ -1,3 +1,3 @@
1
1
  module ControllerFilterLogging
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: controller_filter_logging
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.2
5
+ version: 0.0.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - Jon Moses