tcell_agent 1.1.7 → 1.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA256:
3
- metadata.gz: f6f920526272f2ae748d733a485ce838edbf04ce6ec7641265791fd115d9c2a2
4
- data.tar.gz: 7c80dc4ff7592443f2d4b9d82a776f9e82f2bc2acb1587890d292d8a0c166a1a
2
+ SHA1:
3
+ metadata.gz: 661518d62e6487cba5db306fcc4c15bf99e0308a
4
+ data.tar.gz: 8419fa8cadfc4bff1115a9c2a26c94cfd22d1442
5
5
  SHA512:
6
- metadata.gz: a4c8bea678eb530fb55f9ddeffd0105ad184138c0f77302bc610eee74da467d0de5583b09a1d578c1549cee9730b708d6223ec6d07404c6f9e53b92e4ef9e8b3
7
- data.tar.gz: 32035b9d1703f0b08da77c8621ba19f2741486e90c02e8db886e686f4ac8dd39cf6ac38ad011374d6ed8c1c269b6e5ac20f550f71b4da29dd35e9e1d496d8ac8
6
+ metadata.gz: 7c35625adfd65a2d38d41ef0cbefe73796bbf72348f518da3118a46b0578809a088cfbcbf9b63c57bc20f2c605f8bb30c94ec52900cf3b29afec523ab6b584a4
7
+ data.tar.gz: ef3253afd333aa8166ac0560ef133e67b6d05f1f02988d0978a29875ed3677658c2283c5d51cfe64ddf8aefbbc968f69673af07072a33e39ab2bf0fb377352d3
@@ -367,11 +367,7 @@ end
367
367
  class Logger
368
368
  alias_method :tcell_old_add, :add
369
369
  def add(severity, message = nil, progname = nil)
370
- if TCellAgent.configuration.enabled &&
371
- TCellAgent.configuration.should_instrument? &&
372
- TCellAgent.configuration.should_intercept_requests? &&
373
- severity >= level
374
-
370
+ if severity >= level
375
371
  progname ||= @progname
376
372
  if message.nil?
377
373
  if block_given?
@@ -382,12 +378,17 @@ class Logger
382
378
  end
383
379
  end
384
380
 
385
- TCellAgent::Instrumentation.safe_block_no_log('Handling DLP log message filtering') do
386
- dlp_policy = TCellAgent.policy(TCellAgent::PolicyTypes::DATALOSS)
387
- request_env = TCellAgent::Instrumentation::Rails::Middleware::ContextMiddleware::THREADS.fetch(Thread.current.object_id, nil)
388
- if message && dlp_policy && request_env
389
- tcell_context = request_env[TCellAgent::Instrumentation::TCELL_ID]
390
- tcell_context.filter_log(message) if tcell_context
381
+ if TCellAgent.configuration.enabled &&
382
+ TCellAgent.configuration.should_instrument? &&
383
+ TCellAgent.configuration.should_intercept_requests?
384
+
385
+ TCellAgent::Instrumentation.safe_block_no_log('Handling DLP log message filtering') do
386
+ dlp_policy = TCellAgent.policy(TCellAgent::PolicyTypes::DATALOSS)
387
+ request_env = TCellAgent::Instrumentation::Rails::Middleware::ContextMiddleware::THREADS.fetch(Thread.current.object_id, nil)
388
+ if message && dlp_policy && request_env
389
+ tcell_context = request_env[TCellAgent::Instrumentation::TCELL_ID]
390
+ tcell_context.filter_log(message) if tcell_context
391
+ end
391
392
  end
392
393
  end
393
394
  end
@@ -1,5 +1,5 @@
1
1
  # See the file "LICENSE" for the full license governing this code.
2
2
 
3
3
  module TCellAgent
4
- VERSION = '1.1.7'.freeze
4
+ VERSION = '1.1.8'.freeze
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tcell_agent
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.7
4
+ version: 1.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rafael
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-04-12 00:00:00.000000000 Z
11
+ date: 2019-06-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi
@@ -270,7 +270,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
270
270
  version: '0'
271
271
  requirements: []
272
272
  rubyforge_project:
273
- rubygems_version: 2.7.6
273
+ rubygems_version: 2.5.2.3
274
274
  signing_key:
275
275
  specification_version: 4
276
276
  summary: tCell.io Agent for Rails