dry-logger 1.3.0 → 1.3.1
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 +10 -3
- data/lib/dry/logger/dispatcher.rb +3 -1
- data/lib/dry/logger/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d5d5a865fb07c1d3744b1b78fd34721f816835315203600cb9961e7d28b859e6
|
|
4
|
+
data.tar.gz: a3d599609b294bc106800c9a028a5021ed11dd98d43c7de3886328e8ba502cf1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 81f470b6ede6c4c9094ed4bde7ffe0d5811874cdae613032595861bada3841d6c52942b9ea1b2918db061c5cb59099dfaea510b87711b3e6f6578c2fa8ad0e2a
|
|
7
|
+
data.tar.gz: 14b5569847243b135de3c514d9c94901d7828daf3885a118bf4ffec09c27f16f519277de4133a6e45df3045d54ad9067457b89c984374a0a73a4c48dfdcf520a
|
data/CHANGELOG.md
CHANGED
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
|
|
5
|
-
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
|
-
and this project adheres to [Break Versioning](https://www.taoensso.com/break-versioning).
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Break Versioning](https://www.taoensso.com/break-versioning).
|
|
7
6
|
|
|
8
7
|
## [Unreleased]
|
|
9
8
|
|
|
@@ -19,7 +18,15 @@ and this project adheres to [Break Versioning](https://www.taoensso.com/break-ve
|
|
|
19
18
|
|
|
20
19
|
### Security
|
|
21
20
|
|
|
22
|
-
[Unreleased]: https://github.com/dry-rb/dry-logger/compare/v1.
|
|
21
|
+
[Unreleased]: https://github.com/dry-rb/dry-logger/compare/v1.3.1...main
|
|
22
|
+
|
|
23
|
+
## [1.3.1] - 2026-11-24
|
|
24
|
+
|
|
25
|
+
### Security
|
|
26
|
+
|
|
27
|
+
- Log only the payload's keys when logging crashes. Previously the crash handler wrote the whole unfiltered payload to `$stdout`, including values matching the log filters. (@parndt in GHSA-w372-6w8v-8874)
|
|
28
|
+
|
|
29
|
+
[1.3.1]: https://github.com/dry-rb/dry-logger/compare/v1.3.0...v1.3.1
|
|
23
30
|
|
|
24
31
|
## [1.3.0] - 2026-11-18
|
|
25
32
|
|
|
@@ -46,6 +46,8 @@ module Dry
|
|
|
46
46
|
logger.level = FATAL
|
|
47
47
|
}.freeze
|
|
48
48
|
|
|
49
|
+
# Logs only the payload keys, since the payload has not been filtered yet.
|
|
50
|
+
#
|
|
49
51
|
# @since 1.0.0
|
|
50
52
|
# @api private
|
|
51
53
|
ON_CRASH = -> (progname:, exception:, message:, payload:) {
|
|
@@ -53,7 +55,7 @@ module Dry
|
|
|
53
55
|
severity: "FATAL",
|
|
54
56
|
progname: progname,
|
|
55
57
|
time: Time.now,
|
|
56
|
-
log_entry: [message, payload].map { |s|
|
|
58
|
+
log_entry: [message, payload.keys.join(", ")].map { |s|
|
|
57
59
|
s.to_s.encode("UTF-8", invalid: :replace, undef: :replace, replace: "?")
|
|
58
60
|
}.reject(&:empty?).join(SEPARATOR),
|
|
59
61
|
exception: exception.class,
|
data/lib/dry/logger/version.rb
CHANGED