airbrake 9.3.0 → 9.4.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6231106842eab5861b73b11301a7fa14858cf7da
|
4
|
+
data.tar.gz: 4441123b54f2c50fff4c014eb90b2da35046bbbe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d598e73a591a249bae78ef19d790787b25379ded02bc42e8f7e85099eb8c96946caa44c74d44691697393e61c37c1cecb2ead27f41184b7639750787c06d1253
|
7
|
+
data.tar.gz: 936f8650bcb5cbacf86b29e5782341b08225faac7cda727a3dbe01a10dffff76e824033e6a8bdbf79f9f6a5227ccb297b8e22acf2e5b2ea517ae45e84945f942
|
@@ -13,6 +13,10 @@ module Airbrake
|
|
13
13
|
DEFAULT_MAX_RETRY_ATTEMPTS = ::Sidekiq::JobRetry::DEFAULT_MAX_RETRY_ATTEMPTS
|
14
14
|
end
|
15
15
|
|
16
|
+
def initialize(max_retries: nil)
|
17
|
+
@max_retries = max_retries
|
18
|
+
end
|
19
|
+
|
16
20
|
def call(notice)
|
17
21
|
job = notice[:params][:job]
|
18
22
|
|
@@ -30,7 +34,9 @@ module Airbrake
|
|
30
34
|
end
|
31
35
|
|
32
36
|
def max_attempts_for(job)
|
33
|
-
if
|
37
|
+
if @max_retries
|
38
|
+
@max_retries
|
39
|
+
elsif job['retry'].is_a?(Integer)
|
34
40
|
job['retry']
|
35
41
|
else
|
36
42
|
max_retries
|
data/lib/airbrake/version.rb
CHANGED
@@ -33,7 +33,15 @@ Airbrake.configure do |c|
|
|
33
33
|
# By default, Airbrake Ruby outputs to STDOUT. In Rails apps it makes sense to
|
34
34
|
# use the Rails' logger.
|
35
35
|
# https://github.com/airbrake/airbrake-ruby#logger
|
36
|
-
c.logger =
|
36
|
+
c.logger =
|
37
|
+
if ENV['RAILS_LOG_TO_STDOUT'].present?
|
38
|
+
Logger.new(STDOUT, level: Rails.logger.level)
|
39
|
+
else
|
40
|
+
Logger.new(
|
41
|
+
Rails.root.join('log', 'airbrake.log'),
|
42
|
+
level: Rails.logger.level
|
43
|
+
)
|
44
|
+
end
|
37
45
|
|
38
46
|
# Configures the environment the application is running in. Helps the Airbrake
|
39
47
|
# dashboard to distinguish between exceptions occurring in different
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: airbrake
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 9.
|
4
|
+
version: 9.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Airbrake Technologies, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-07-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: airbrake-ruby
|
@@ -393,7 +393,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
393
393
|
version: '0'
|
394
394
|
requirements: []
|
395
395
|
rubyforge_project:
|
396
|
-
rubygems_version: 2.6.
|
396
|
+
rubygems_version: 2.6.14.4
|
397
397
|
signing_key:
|
398
398
|
specification_version: 4
|
399
399
|
summary: Airbrake is an online tool that provides robust exception tracking in any
|