exception_handling 2.5.0.pre.2 → 2.5.0
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 +4 -4
- data/CHANGELOG.md +5 -1
- data/Gemfile.lock +1 -1
- data/lib/exception_handling.rb +1 -1
- data/lib/exception_handling/exception_info.rb +4 -2
- data/lib/exception_handling/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7b8df9043df9ecc580c8ea91495410cf37316c113acf43ac7f28dfeb885e235d
|
4
|
+
data.tar.gz: 84f2a6eac09d7388f3c9ffd2e58a4211231aff7ccfe8869b1e307c51e9b02788
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 958f9994d47ff6ab87082ed04411c62af377e5e317c8f8669c349d4d7d38f4c7d0a88f6119a2c2a83882ed1be8624baf6e4c67e5fe0bedaeeebcfea7921558e5
|
7
|
+
data.tar.gz: c412244a874549ce99d8e0645ceb6b56a59b9b8b92ddba6cbfab8eb83e5159954d13e5e96e119519e4c9e97e5786412f9f3d60ebef66f4bd5aa5c71dbd70901c
|
data/CHANGELOG.md
CHANGED
@@ -4,11 +4,15 @@ Inspired by [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|
4
4
|
|
5
5
|
Note: this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
6
6
|
|
7
|
-
## [2.5.0] -
|
7
|
+
## [2.5.0] - 2020-08-19
|
8
8
|
### Added
|
9
9
|
- The `**log_context` passed to `log_error`/`log_warning`/`log_info` is now
|
10
10
|
passed into `Honeybadger.notify()`, in `context: { log_context: ... }`.
|
11
11
|
|
12
|
+
### Fixed
|
13
|
+
- Silenced test warning noise by no longer running ruby -w.
|
14
|
+
- Renamed a constant to ALLOWLIST.
|
15
|
+
|
12
16
|
## [2.4.4] - 2020-08-10
|
13
17
|
### Fixed
|
14
18
|
- `ExceptionHandling.logger = nil` no longer displays an "implicit extend" deprecation warning.
|
data/Gemfile.lock
CHANGED
data/lib/exception_handling.rb
CHANGED
@@ -195,7 +195,7 @@ module ExceptionHandling # never included
|
|
195
195
|
timestamp = set_log_error_timestamp
|
196
196
|
exception_info = ExceptionInfo.new(ex, exception_context, timestamp,
|
197
197
|
controller: controller || current_controller, data_callback: data_callback,
|
198
|
-
log_context:
|
198
|
+
log_context: log_context)
|
199
199
|
|
200
200
|
if stub_handler
|
201
201
|
stub_handler.handle_stub_log_error(exception_info.data)
|
@@ -57,7 +57,9 @@ module ExceptionHandling
|
|
57
57
|
@timestamp = timestamp
|
58
58
|
@controller = controller || controller_from_context(exception_context)
|
59
59
|
@data_callback = data_callback
|
60
|
-
@
|
60
|
+
@merged_log_context = if log_context # merge into the surrounding context just like ContextualLogger does when logging
|
61
|
+
ExceptionHandling.logger.current_context_for_thread.deep_merge(log_context)
|
62
|
+
end
|
61
63
|
end
|
62
64
|
|
63
65
|
def data
|
@@ -269,7 +271,7 @@ module ExceptionHandling
|
|
269
271
|
data = enhanced_data.dup
|
270
272
|
data[:server] = ExceptionHandling.server_name
|
271
273
|
data[:exception_context] = deep_clean_hash(@exception_context) if @exception_context.present?
|
272
|
-
data[:log_context] = @
|
274
|
+
data[:log_context] = @merged_log_context
|
273
275
|
unstringify_sections(data)
|
274
276
|
context_data = HONEYBADGER_CONTEXT_SECTIONS.reduce({}) do |context, section|
|
275
277
|
if data[section].present?
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: exception_handling
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.5.0
|
4
|
+
version: 2.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Invoca
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-08-
|
11
|
+
date: 2020-08-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionmailer
|
@@ -180,9 +180,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
180
180
|
version: '0'
|
181
181
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
182
182
|
requirements:
|
183
|
-
- - "
|
183
|
+
- - ">="
|
184
184
|
- !ruby/object:Gem::Version
|
185
|
-
version:
|
185
|
+
version: '0'
|
186
186
|
requirements: []
|
187
187
|
rubygems_version: 3.0.3
|
188
188
|
signing_key:
|