rails-autoscale-core 1.0.3 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/rails_autoscale/logger.rb +7 -4
- data/lib/rails_autoscale/request_metrics.rb +1 -1
- data/lib/rails_autoscale/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 50da5c684e5529550e1ca98e3fae5f691e6c570a22fcea50fa4c5835bd3f2b2b
|
4
|
+
data.tar.gz: d92402f06b3e9274a23edd96568977f9833d64577728b4cc14b5d504c9b822d9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 03d5797fd9590fb1588e7ccdb473643f03d306776d8d1a277557f9d2e8dd6b71b08155e6788f1de59cdcadb72d89f013ae32e114c28a7d5b1de1a8a5514df444
|
7
|
+
data.tar.gz: bf3710593737f7286c7b05959b518a634c0f94da406eeb98828d3be52876908213339c6eb133476a55690976890af92ef372fd61e64a5ba44502fa154c3f06d6
|
data/Gemfile.lock
CHANGED
@@ -11,17 +11,20 @@ module RailsAutoscale
|
|
11
11
|
end
|
12
12
|
|
13
13
|
class LoggerProxy < Struct.new(:logger, :log_level)
|
14
|
-
%w[ERROR WARN INFO DEBUG].each do |severity_name|
|
14
|
+
%w[ERROR WARN INFO DEBUG FATAL].each do |severity_name|
|
15
15
|
severity_level = ::Logger::Severity.const_get(severity_name)
|
16
16
|
|
17
17
|
define_method(severity_name.downcase) do |*messages|
|
18
18
|
if log_level.nil?
|
19
|
-
logger.
|
19
|
+
logger.public_send(severity_name.downcase) { tag(messages) }
|
20
20
|
elsif severity_level >= log_level
|
21
21
|
if severity_level >= logger.level
|
22
|
-
logger.
|
22
|
+
logger.public_send(severity_name.downcase) { tag(messages) }
|
23
23
|
else
|
24
|
-
logger
|
24
|
+
# Our logger proxy is configured with a lower severity level than the underlying logger,
|
25
|
+
# so send this message using the underlying logger severity instead of the actual severity.
|
26
|
+
logger_severity_name = ::Logger::SEV_LABEL[logger.level].downcase
|
27
|
+
logger.public_send(logger_severity_name) { tag(messages, tag_level: severity_name) }
|
25
28
|
end
|
26
29
|
end
|
27
30
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails-autoscale-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam McCrea
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2022-
|
12
|
+
date: 2022-11-14 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description:
|
15
15
|
email:
|