sapience 1.0.13 → 1.0.14

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
  SHA1:
3
- metadata.gz: 1d6f1b39d488984c087e820ca5574dc42659fe3e
4
- data.tar.gz: a9103bf6f59d9bfa4196a8a9cebd62b32cac60b4
3
+ metadata.gz: 2aed0df467378ac646fa05af8a0a0799a21cfa88
4
+ data.tar.gz: f550a0c2803f28f5f77d31bcd4ef489a877d2ca7
5
5
  SHA512:
6
- metadata.gz: bf32114892d359c524a7226c6d6e31d5d7b4fc6f12c7abc74a75c03b564417c8fbcaa62de8d9cc41f7abd83a8d54337abb3b2ae8b79bb7bb7524b23f6816be04
7
- data.tar.gz: 09abea7a6b83ec60ce7ff4f14f6602e24b5ba367ddd73b699e18c452e803985889d4735fd56034614cbb22f104f8a9db324fd8690207285740e0277ed6be1f04
6
+ metadata.gz: ebeb4d7edbaf6ff66ab9ac7304acf913bba32dff56132c44a742e7010802a7e57db94d77e5cb26542236246b5f4ccff94da214777cdfcae233551f433a49bcab
7
+ data.tar.gz: c72a36c7302f1ac9e698dabd794835b13b14625c411e433af6a17176267936b294e556629cd3c5f9cfd5b192e5eb1e62a25625f799251d526493ac15f4505a8a
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## v1.0.14
2
+
3
+ - Reduce log output noise from the sentry logger
4
+
1
5
  ## v1.0.13
2
6
 
3
7
  - Fix a problem with logging extra parameters to sentry
@@ -88,12 +88,21 @@ module Sapience
88
88
 
89
89
  def configure_sentry
90
90
  Raven.configure do |config|
91
- config.dsn = sentry_dsn
92
- config.tags = { environment: Sapience.environment }
91
+ config.dsn = sentry_dsn
92
+ config.tags = { environment: Sapience.environment }
93
+ config.logger = sentry_logger
93
94
  end
94
95
  @configured = true
95
96
  end
96
97
 
98
+ def sentry_logger
99
+ @sentry_logger ||= begin
100
+ logger = Sapience[self.class]
101
+ logger.level = :error
102
+ logger
103
+ end
104
+ end
105
+
97
106
  # Use Raw Formatter by default
98
107
  def default_formatter
99
108
  Sapience::Formatters::Raw.new
data/lib/sapience/log.rb CHANGED
@@ -145,6 +145,7 @@ module Sapience
145
145
  # its hash. We need to obfuscate these fields.
146
146
  def payload # rubocop:disable AbcSize
147
147
  return self[:payload] unless self[:payload].is_a?(Hash) && self[:payload][:params].is_a?(Hash)
148
+ @payload ||= nil
148
149
  return @payload unless @payload.nil?
149
150
 
150
151
  # We don't want to mutate the existing object so dup
@@ -1,3 +1,3 @@
1
1
  module Sapience
2
- VERSION = "1.0.13"
2
+ VERSION = "1.0.14"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sapience
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.13
4
+ version: 1.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mikael Henriksson
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-10-13 00:00:00.000000000 Z
12
+ date: 2016-10-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: concurrent-ruby