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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/sapience/appender/sentry.rb +11 -2
- data/lib/sapience/log.rb +1 -0
- data/lib/sapience/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2aed0df467378ac646fa05af8a0a0799a21cfa88
|
4
|
+
data.tar.gz: f550a0c2803f28f5f77d31bcd4ef489a877d2ca7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ebeb4d7edbaf6ff66ab9ac7304acf913bba32dff56132c44a742e7010802a7e57db94d77e5cb26542236246b5f4ccff94da214777cdfcae233551f433a49bcab
|
7
|
+
data.tar.gz: c72a36c7302f1ac9e698dabd794835b13b14625c411e433af6a17176267936b294e556629cd3c5f9cfd5b192e5eb1e62a25625f799251d526493ac15f4505a8a
|
data/CHANGELOG.md
CHANGED
@@ -88,12 +88,21 @@ module Sapience
|
|
88
88
|
|
89
89
|
def configure_sentry
|
90
90
|
Raven.configure do |config|
|
91
|
-
config.dsn
|
92
|
-
config.tags
|
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
|
data/lib/sapience/version.rb
CHANGED
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.
|
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-
|
12
|
+
date: 2016-10-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: concurrent-ruby
|