eivo-rails-sidekiq 0.1.0 → 0.1.5

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: e9c5a8a7c8b98d2919617c975143a26fde52dd2c4d6eac0ffb5bdc8fa34d9e8f
4
- data.tar.gz: 0207c17f23e5a8c01045a0e458dc67fad739821516ca58bd09cafc61098becc3
3
+ metadata.gz: be018365076d710c45822fe0d17df39c2d89d38889fa8165037139b5126f5bec
4
+ data.tar.gz: f9e28ab43d0cd8c9836d1e04304f7fe043b36064e2ae1d1f47a88dca99428a79
5
5
  SHA512:
6
- metadata.gz: 8e54da8308c0bcfa826dba5bec0c195e524f001951add869ad224b0c585177c731ebb06259c1909f2341a2bc590db6d55f6b35e89e3a6b562c192cd9561f6b34
7
- data.tar.gz: 76cb6044d5779166e38adef5f16c6a423cc511feff6e926ff94a7ec65d5a1f1f6f4fb4158817348942ee3b5e77ec17e8896d78a62ba27a863b67cb1a66f524c3
6
+ metadata.gz: 8b632b6ec0ed73a42077033b24b48b82c7e9b7841321883148b19e2717043e6e72089e09efaa492ea1b8983aa68769a78a0c7d113f17d0a8a2d50383679be602
7
+ data.tar.gz: '049e97b49f1dbfdc76cf82c78be4e222c739eb637f5a4d6607c0840665e00ab2948ec6d96caaf5da443bf8b1d376431bfd07d3e50c6879bbfa708a86f10d6109'
@@ -14,7 +14,17 @@ end
14
14
 
15
15
  Sidekiq.configure_server do |config|
16
16
  config.redis = redis_config.dup
17
- config.log_formatter = Sidekiq::Logger::Formatters::JSON.new
17
+
18
+ if Rails.env.staging? || Rails.env.production?
19
+ config.log_formatter = ::EIVO::Formatter.new
20
+
21
+ config.error_handlers << proc do |error, context|
22
+ Sidekiq.logger.error({
23
+ error: ["#{error.class.name}: #{error.message}", error.backtrace&.join("\n")].join("\n"),
24
+ context: context
25
+ })
26
+ end
27
+ end
18
28
  end
19
29
 
20
30
  ActiveJob::Base.queue_adapter = :sidekiq if defined?(ActiveJob)
@@ -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.0'
5
+ spec.version = '0.1.5'
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.0
4
+ version: 0.1.5
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-04-25 00:00:00.000000000 Z
11
+ date: 2020-06-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sidekiq