errplane 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/errplane.rb +6 -1
- data/lib/errplane/version.rb +1 -1
- metadata +1 -1
data/lib/errplane.rb
CHANGED
@@ -48,7 +48,12 @@ module Errplane
|
|
48
48
|
|
49
49
|
def transmit(e)
|
50
50
|
begin
|
51
|
-
black_box =
|
51
|
+
black_box = if e.is_a?(String)
|
52
|
+
assemble_black_box_for(Exception.new(e))
|
53
|
+
else
|
54
|
+
assemble_black_box_for(e)
|
55
|
+
end
|
56
|
+
|
52
57
|
::Rails.logger.info("\nTransmitter: #{transmitter.inspect}")
|
53
58
|
::Rails.logger.info("\nBlack Box: #{black_box.to_json}")
|
54
59
|
::Rails.logger.info("\nIgnorable Exception? #{ignorable_exception?(e)}")
|
data/lib/errplane/version.rb
CHANGED