judoscale-ruby 1.8.2 → 1.8.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/judoscale/config.rb +17 -1
- data/lib/judoscale/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b7891f9296093834a1c5d414f0a30010dd20aa8183250d9e7431ae6d821051c2
|
4
|
+
data.tar.gz: 71c7009f8e56e243d111164fe1897113d7afea21afb327f2a0b079143d404115
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 45dfc849ae8b813bdf3c78745074423b92c686ba901c9523f1072fea39600ce3554fe054d69a626b107a9e5b88930a212470ba4b1aa253e81fb18284787a5c7e
|
7
|
+
data.tar.gz: 7f8991a523ee1131e2939605fe3d50acfb00cf5bcd075055d49cbe31ded4234df8b3a278e38fccbb060e6884cd36983b4314503263c8c65f8fa9c625d0dca8a3
|
data/lib/judoscale/config.rb
CHANGED
@@ -110,7 +110,7 @@ module Judoscale
|
|
110
110
|
end
|
111
111
|
|
112
112
|
def log_level=(new_level)
|
113
|
-
@log_level =
|
113
|
+
@log_level = get_severity_log_level(new_level)
|
114
114
|
end
|
115
115
|
|
116
116
|
def as_json
|
@@ -127,5 +127,21 @@ module Judoscale
|
|
127
127
|
def ignore_large_requests?
|
128
128
|
@max_request_size_bytes
|
129
129
|
end
|
130
|
+
|
131
|
+
private
|
132
|
+
|
133
|
+
def get_severity_log_level(log_level)
|
134
|
+
return nil if log_level.to_s.strip.empty?
|
135
|
+
|
136
|
+
upcased_log_level = log_level.to_s.upcase
|
137
|
+
|
138
|
+
if ::Logger::Severity.const_defined?(upcased_log_level)
|
139
|
+
::Logger::Severity.const_get(upcased_log_level)
|
140
|
+
else
|
141
|
+
logger.warn "Invalid log_level detected: #{log_level}"
|
142
|
+
|
143
|
+
nil
|
144
|
+
end
|
145
|
+
end
|
130
146
|
end
|
131
147
|
end
|
data/lib/judoscale/version.rb
CHANGED
metadata
CHANGED
@@ -1,18 +1,18 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: judoscale-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.8.
|
4
|
+
version: 1.8.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam McCrea
|
8
8
|
- Carlos Antonio da Silva
|
9
9
|
- Jon Sullivan
|
10
|
-
autorequire:
|
10
|
+
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2024-
|
13
|
+
date: 2024-12-30 00:00:00.000000000 Z
|
14
14
|
dependencies: []
|
15
|
-
description:
|
15
|
+
description:
|
16
16
|
email:
|
17
17
|
- hello@judoscale.com
|
18
18
|
executables: []
|
@@ -43,7 +43,7 @@ metadata:
|
|
43
43
|
documentation_uri: https://judoscale.com/docs
|
44
44
|
changelog_uri: https://github.com/judoscale/judoscale-ruby/blob/main/CHANGELOG.md
|
45
45
|
source_code_uri: https://github.com/judoscale/judoscale-ruby
|
46
|
-
post_install_message:
|
46
|
+
post_install_message:
|
47
47
|
rdoc_options: []
|
48
48
|
require_paths:
|
49
49
|
- lib
|
@@ -58,8 +58,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
58
58
|
- !ruby/object:Gem::Version
|
59
59
|
version: '0'
|
60
60
|
requirements: []
|
61
|
-
rubygems_version: 3.5.
|
62
|
-
signing_key:
|
61
|
+
rubygems_version: 3.5.22
|
62
|
+
signing_key:
|
63
63
|
specification_version: 4
|
64
64
|
summary: Autoscaling for Ruby.
|
65
65
|
test_files: []
|