logjam_agent 0.39.0 → 0.39.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/logjam_agent/railtie.rb +15 -5
- data/lib/logjam_agent/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f186ba84a9bc5d93776c0d24b140736439fbc0f29eebe2afbeb9401c22eb0987
|
4
|
+
data.tar.gz: 7ef52541666f638caa3ffd2798f2da95128f720b9df27c8acf6a37ade5666c08
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a3a424872649058f48a09babd30da5abac2e013db6afe50fd9284bb51e313fe6ab9d313c47f7aee40e097c64b297d533d209d3f118273fc1980e2f4e6f08f138
|
7
|
+
data.tar.gz: 4003a735b587bd1e6a69cd2f6c671ce86f70c609269dd273fb8859ea0a9795cf5264421d088b842b5d357f50c090360d2530ae092cf05a639c17e808465ae6aa
|
data/lib/logjam_agent/railtie.rb
CHANGED
@@ -140,11 +140,21 @@ module LogjamAgent
|
|
140
140
|
trace = wrapper.application_trace
|
141
141
|
trace = wrapper.framework_trace if trace.empty?
|
142
142
|
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
143
|
+
if Gem::Version.new(Rails::VERSION::STRING) >= Gem::Version.new("7.1.0")
|
144
|
+
Rails.application.deprecators.silence do
|
145
|
+
parts = [ "#{exception.class} (#{exception.message})" ]
|
146
|
+
parts.concat exception.annoted_source_code if exception.respond_to?(:annoted_source_code)
|
147
|
+
parts.concat trace
|
148
|
+
logger.fatal parts.join("\n ")
|
149
|
+
end
|
150
|
+
else
|
151
|
+
ActiveSupport::Deprecation.silence do
|
152
|
+
parts = [ "#{exception.class} (#{exception.message})" ]
|
153
|
+
parts.concat exception.annoted_source_code if exception.respond_to?(:annoted_source_code)
|
154
|
+
parts.concat trace
|
155
|
+
logger.fatal parts.join("\n ")
|
156
|
+
end
|
157
|
+
|
148
158
|
end
|
149
159
|
end
|
150
160
|
end
|
data/lib/logjam_agent/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logjam_agent
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.39.
|
4
|
+
version: 0.39.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stefan Kaes
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-09-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -128,7 +128,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
128
128
|
- !ruby/object:Gem::Version
|
129
129
|
version: '0'
|
130
130
|
requirements: []
|
131
|
-
rubygems_version: 3.
|
131
|
+
rubygems_version: 3.5.11
|
132
132
|
signing_key:
|
133
133
|
specification_version: 4
|
134
134
|
summary: Logjam client library to be used with logjam
|