logstasher 0.8.2 → 0.8.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
  SHA1:
3
- metadata.gz: a6c6fc0a02454a4b8dba0d6b7382aa9e9f4472fb
4
- data.tar.gz: 94d05b1358dd0bc32e2c629a8d9d1c041664a8f1
3
+ metadata.gz: 8e300015f35f400fc8dea327da0013a4c21e02c7
4
+ data.tar.gz: c7f75c5a1f8efd4404f364fc29d6e3f58c050130
5
5
  SHA512:
6
- metadata.gz: e9187bae7a6a01d58601d8beacafeb6cd6624d750d12c928c4450f6e3aa89eb6792fa5634161e26be79dac1a72a6e014f2d4585247ff41184ae35ec1a34cec40
7
- data.tar.gz: fb2dcf41ab0cf0f13a083d6a27c8eda0a9d5667917d0bd9ab2c9e918f272c35fdbef0f2208b1f5ddfca16ec56b9dfbea9c807c474ff27889b87077006ed3a6de
6
+ metadata.gz: 3a28bbde5aa3d74c71e0c32ad78d5795b249584aa7477ab776681680ba54ac14a0587c214c8aeca2cda8915e169e0f45585d0df3d32dfae184670808bf381e12
7
+ data.tar.gz: b81222f336f812337195f4c88b8d62da8183d0f589b748f13e46cdf5d58ebd7b124ef03981d1c1eacdaccb5a2d57263e3de8f6aeb6daecbe384b93df7f726754
data/lib/logstasher.rb CHANGED
@@ -15,7 +15,7 @@ module LogStasher
15
15
  REQUEST_CONTEXT_KEY = :logstasher_request_context
16
16
 
17
17
  attr_accessor :logger, :logger_path, :enabled, :log_controller_parameters, :source, :backtrace,
18
- :delayed_jobs_support, :controller_monkey_patch
18
+ :controller_monkey_patch
19
19
  # Setting the default to 'unknown' to define the default behaviour
20
20
  @source = 'unknown'
21
21
  # By default log the backtrace of exceptions
@@ -96,7 +96,6 @@ module LogStasher
96
96
  if (! config.controller_monkey_patch && config.controller_monkey_patch != false) || config.controller_monkey_patch == true
97
97
  require 'logstasher/rails_ext/action_controller/metal/instrumentation'
98
98
  end
99
- self.delayed_plugin(config)
100
99
  self.suppress_app_logs(config)
101
100
  self.logger_path = config.logger_path || "#{Rails.root}/log/logstash_#{Rails.env}.log"
102
101
  self.logger = config.logger || new_logger(self.logger_path)
@@ -124,13 +123,6 @@ module LogStasher
124
123
  defined?(Rails::Console) && true || false
125
124
  end
126
125
 
127
- def delayed_plugin(config)
128
- if config.delayed_jobs_support || false
129
- require 'logstasher/delayed/plugin'
130
- ::Delayed::Worker.plugins << ::LogStasher::Delayed::Plugin
131
- end
132
- end
133
-
134
126
  def suppress_app_logs(config)
135
127
  if configured_to_suppress_app_logs?(config)
136
128
  require 'logstasher/rails_ext/rack/logger'
@@ -1,3 +1,3 @@
1
1
  module LogStasher
2
- VERSION = "0.8.2"
2
+ VERSION = "0.8.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstasher
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.2
4
+ version: 0.8.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shadab Ahmed
@@ -24,20 +24,6 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: 1.2.0
27
- - !ruby/object:Gem::Dependency
28
- name: delayed_job
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: 4.0.2
34
- type: :runtime
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: 4.0.2
41
27
  - !ruby/object:Gem::Dependency
42
28
  name: request_store
43
29
  requirement: !ruby/object:Gem::Requirement
@@ -134,7 +120,6 @@ files:
134
120
  - lib/logstasher/active_record/log_subscriber.rb
135
121
  - lib/logstasher/active_support/log_subscriber.rb
136
122
  - lib/logstasher/active_support/mailer_log_subscriber.rb
137
- - lib/logstasher/delayed/plugin.rb
138
123
  - lib/logstasher/device/redis.rb
139
124
  - lib/logstasher/rails_ext/action_controller/base.rb
140
125
  - lib/logstasher/rails_ext/action_controller/metal/instrumentation.rb
@@ -1,16 +0,0 @@
1
- require 'delayed_job'
2
- module LogStasher
3
- module Delayed
4
- class Plugin < ::Delayed::Plugin
5
- callbacks do |lifecycle|
6
- lifecycle.before(:invoke_job) do |job, *args, &block|
7
- ::LogStasher.request_context[:request_id] = job.id
8
- # perhaps handler#object.first_line and method_name would be interesting too (in store??)
9
- end
10
- lifecycle.after(:invoke_job) do |job, *args, &block|
11
- ::LogStasher.request_context[:request_id] = nil
12
- end
13
- end
14
- end
15
- end
16
- end