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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 80613e919661165f768bd2a96b293c1908447e2cf936d7bf0f3b47e2338dec26
4
- data.tar.gz: a49dffa5584e4a326ca21b10cdb6a82f091caf23a49d18241db3225343193ef8
3
+ metadata.gz: 4d40605191a7b91d8df6797e3d0e9fa73f82eec5b60dc340f600f5a70b1374ce
4
+ data.tar.gz: 524309f5f0e91a96abc5d85ae158e9316f71c13af2f4076742c14f45812aaec8
5
5
  SHA512:
6
- metadata.gz: ddb0cc47d3f960a1e761ed9e6647a9f3048ef6a4ed85ddd46c4c21c1f78d4dd2975f3842172570fba2570f968a23107d1d28133c5cc0a82c171fcc8892fa16f3
7
- data.tar.gz: c54860b71c585ef469c9f425601e55d282cedaafde4860bcf0f46474bab9b5b7fe4f6cef460729c11de7af61636c9b099f6c7865f5ac336d8b6d3301a2444d69
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
- ### enable_filter_for_log_levels
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.enable_filter_for_log_levels = [0, 1, 2, 3, 4]
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
- :enable_filter_for_log_levels
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 unless enable_filter_for_log_levels.include?(log_level)
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
- :enable_filter_for_log_levels
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
- @enable_filter_for_log_levels = supported_log_levels.values
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 enable_filter_for_log_levels=(log_levels)
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
- @enable_filter_for_log_levels = log_levels
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Kiev
4
- VERSION = "4.8.0"
4
+ VERSION = "4.8.1"
5
5
  end
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.0
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-16 00:00:00.000000000 Z
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.6
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