madvertise-logging 0.9.2 → 0.9.3
Sign up to get free protection for your applications and to get access to all the features.
@@ -7,12 +7,15 @@ module Madvertise
|
|
7
7
|
#
|
8
8
|
# @param [Exception] exc The exception to log.
|
9
9
|
# @param [String] message Additional reason to log.
|
10
|
-
def
|
10
|
+
def exception_with_airbrake(exc, message = nil, attribs = {})
|
11
11
|
Airbrake.notify_or_ignore(exc, {
|
12
12
|
:error_message => message,
|
13
13
|
:cgi_data => ENV.to_hash,
|
14
14
|
}.merge(attribs))
|
15
15
|
end
|
16
|
+
|
17
|
+
alias_method :exception_without_airbrake, :exception
|
18
|
+
alias_method :exception, :exception_with_airbrake
|
16
19
|
end
|
17
20
|
end
|
18
21
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: madvertise-logging
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -58,7 +58,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
58
58
|
version: '0'
|
59
59
|
segments:
|
60
60
|
- 0
|
61
|
-
hash:
|
61
|
+
hash: -4344757976750083910
|
62
62
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
63
63
|
none: false
|
64
64
|
requirements:
|
@@ -67,7 +67,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
67
67
|
version: '0'
|
68
68
|
segments:
|
69
69
|
- 0
|
70
|
-
hash:
|
70
|
+
hash: -4344757976750083910
|
71
71
|
requirements: []
|
72
72
|
rubyforge_project:
|
73
73
|
rubygems_version: 1.8.24
|