eivo-rails-sidekiq 0.1.1 → 0.1.2

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
  SHA256:
3
- metadata.gz: f11681c6f7a91f2af9bb5309c81f85bc6145d6f8633fd47f725c181229ce49ff
4
- data.tar.gz: b08fc23c5a1e20ed3a082281c9f5a8994b2f66079a511028bafe77091d53bd12
3
+ metadata.gz: 81e6c57adcaebd0b118d4d1315cd607467ef96237a54908416f39867ac3cd7cd
4
+ data.tar.gz: 83d66de5bc341d9b7484f48448a4f1780ccda464bcb0d59519e6301713c853dc
5
5
  SHA512:
6
- metadata.gz: 55a8c68458e949825eeeee6b4aa05281fd0c9a40c7b5b37ffcb7fdbfe9b917240cd1e7b7710d8d9c172d607ff83fdbe6ce543fa1ab96d28e11059166c22b60ff
7
- data.tar.gz: 2470e46cfe593f3a7cb33250b29cbbfd86905b36edd7ddafd224f2cd0eddf65370230f146f344e03318b88a01545ac9ab34988ec8041741f740b27d1781e98b4
6
+ metadata.gz: 36d4756dfa2e24a80bbad8975e7dca83ab5ab1861c88f6c70c2261aae5e5505a9e9b1fe7d5e077b234c278e2dafdf95ba113593068046d2af0de583bff274192
7
+ data.tar.gz: 20659b03acc0e873ada6a6757d46a1e4fa171b3157f72b984aaa8b1e4ced4155b876072752981a834fed8c724545d95091b831b7010ae79b7653bf5d59e50045
@@ -17,6 +17,13 @@ Sidekiq.configure_server do |config|
17
17
 
18
18
  if Rails.env.staging? || Rails.env.production?
19
19
  config.log_formatter = ::EIVO::Formatter.new
20
+
21
+ config.error_handlers << proc do |error, context|
22
+ Sidekiq.logger.error {
23
+ error: ["#{e.class.name}: #{e.message}", e.backtrace.to_s.join("\n")].join("\n"),
24
+ context: context
25
+ }
26
+ end
20
27
  end
21
28
  end
22
29
 
@@ -2,7 +2,7 @@ $:.push File.expand_path("../lib", __FILE__)
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = 'eivo-rails-sidekiq'
5
- spec.version = '0.1.1'
5
+ spec.version = '0.1.2'
6
6
  spec.authors = ['Jonathan VUKOVICH-TRIBOUHARET']
7
7
  spec.email = ['jonathan@eivo.co']
8
8
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eivo-rails-sidekiq
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan VUKOVICH-TRIBOUHARET
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-01 00:00:00.000000000 Z
11
+ date: 2020-05-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sidekiq