kiev 4.8.0 → 4.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/lib/kiev/base.rb +2 -2
- data/lib/kiev/config.rb +4 -4
- data/lib/kiev/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: 4d40605191a7b91d8df6797e3d0e9fa73f82eec5b60dc340f600f5a70b1374ce
|
4
|
+
data.tar.gz: 524309f5f0e91a96abc5d85ae158e9316f71c13af2f4076742c14f45812aaec8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 52737e6382ca2e0ce2e6cf5c0ead72a30454e456ea8b126fc65c30f06c68dc02ba082f74534a84e041b88931d1ea6de1f365d6dff73e148c160c158659553b3f
|
7
|
+
data.tar.gz: 9010b961ccbef8dcbc2f39a844ab1f2992e50f7d4ede821cc5329391df24f5e8fde18422d06aa20f9fbc6110fa60d9d1170bd1b95918e7c630413c1f89c1d42e
|
data/README.md
CHANGED
@@ -454,13 +454,13 @@ Kiev.configure do |config|
|
|
454
454
|
end
|
455
455
|
```
|
456
456
|
|
457
|
-
###
|
458
|
-
You can specify for which log levels personal identifying information filter will be applied.
|
457
|
+
### disable_filter_for_log_levels
|
458
|
+
You can specify for which log levels personal identifying information filter will NOT be applied.
|
459
459
|
|
460
460
|
```ruby
|
461
461
|
Kiev.configure do |config|
|
462
462
|
# [DEBUG, INFO, WARN, ERROR, FATAL]
|
463
|
-
config.
|
463
|
+
config.disable_filter_for_log_levels = [0, 1, 2, 3, 4]
|
464
464
|
end
|
465
465
|
```
|
466
466
|
|
data/lib/kiev/base.rb
CHANGED
@@ -25,7 +25,7 @@ module Kiev
|
|
25
25
|
:filtered_params,
|
26
26
|
:ignored_params,
|
27
27
|
:log_level,
|
28
|
-
:
|
28
|
+
:disable_filter_for_log_levels
|
29
29
|
|
30
30
|
EMPTY_OBJ = {}.freeze
|
31
31
|
|
@@ -72,7 +72,7 @@ module Kiev
|
|
72
72
|
private
|
73
73
|
|
74
74
|
def logged_data(data)
|
75
|
-
return data
|
75
|
+
return data if disable_filter_for_log_levels.include?(log_level)
|
76
76
|
|
77
77
|
ParamFilter.filter(data, filtered_params, ignored_params)
|
78
78
|
end
|
data/lib/kiev/config.rb
CHANGED
@@ -104,7 +104,7 @@ module Kiev
|
|
104
104
|
:jobs_propagated_fields,
|
105
105
|
:all_http_propagated_fields, # for internal use
|
106
106
|
:all_jobs_propagated_fields, # for internal use
|
107
|
-
:
|
107
|
+
:disable_filter_for_log_levels
|
108
108
|
|
109
109
|
def initialize
|
110
110
|
@log_request_condition = DEFAULT_LOG_REQUEST_CONDITION
|
@@ -120,7 +120,7 @@ module Kiev
|
|
120
120
|
@log_level = default_log_level
|
121
121
|
@persistent_log_fields = []
|
122
122
|
@pre_rack_hook = DEFAULT_PRE_RACK_HOOK
|
123
|
-
@
|
123
|
+
@disable_filter_for_log_levels = []
|
124
124
|
self.propagated_fields = {}
|
125
125
|
update_logger_settings
|
126
126
|
end
|
@@ -157,10 +157,10 @@ module Kiev
|
|
157
157
|
update_logger_settings
|
158
158
|
end
|
159
159
|
|
160
|
-
def
|
160
|
+
def disable_filter_for_log_levels=(log_levels)
|
161
161
|
raise ArgumentError, "Unsupported log levels" unless array_with_log_levels?(log_levels)
|
162
162
|
|
163
|
-
@
|
163
|
+
@disable_filter_for_log_levels = log_levels
|
164
164
|
end
|
165
165
|
|
166
166
|
def development_mode=(value)
|
data/lib/kiev/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kiev
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.8.
|
4
|
+
version: 4.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Blacklane
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-02-
|
11
|
+
date: 2022-02-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: oga
|
@@ -222,7 +222,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
222
222
|
- !ruby/object:Gem::Version
|
223
223
|
version: '0'
|
224
224
|
requirements: []
|
225
|
-
rubygems_version: 3.3.
|
225
|
+
rubygems_version: 3.3.7
|
226
226
|
signing_key:
|
227
227
|
specification_version: 4
|
228
228
|
summary: Distributed logging to JSON integrated with various Ruby frameworks and tools
|