end_point_blank 0.6.0 → 0.6.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 +13 -0
- data/lib/end_point_blank/version.rb +1 -1
- data/lib/end_point_blank.rb +9 -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: 7d551ebef6febc0f3bf6fab7bd885b880c8d437e30bcb27f2a3b614fe20c6abb
|
|
4
|
+
data.tar.gz: 345fe3ae57d03f2f957784045b4a394408385a75efd29ba71c5cf28e3d6df908
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 598a65669696f9e649374c9f56b0beb6441bc0a62d836836f0c258bf74df97284adc1fe1b009852bc129c08266ef947191a233711f998d60eb1702e017dec9bf
|
|
7
|
+
data.tar.gz: d9231f0a32995e7f0d90e68b1731cea62375d16e4f808df4da65d6ed94b71da0d93f06eaadeb5e4c2392eefb05b302e07ccdb81a245d0f9be50520e162c5e669
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.6.1
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
|
|
7
|
+
- **Diagnostics now go to stderr, not stdout.** `EndPointBlank.logger` defaulted
|
|
8
|
+
to `Logger.new($stdout)`. This gem runs inside your process, so everything it
|
|
9
|
+
logged landed in your application's own output — which corrupts any program
|
|
10
|
+
whose stdout carries structured data, such as a CLI emitting JSON or a worker
|
|
11
|
+
writing a protocol stream, with no way for you to separate the two.
|
|
12
|
+
|
|
13
|
+
If you were relying on SDK log lines appearing on stdout, they now appear on
|
|
14
|
+
stderr. `EndPointBlank.logger=` still overrides, unchanged.
|
|
15
|
+
|
|
3
16
|
## 0.6.0
|
|
4
17
|
|
|
5
18
|
### Breaking
|
data/lib/end_point_blank.rb
CHANGED
|
@@ -49,8 +49,16 @@ module EndPointBlank
|
|
|
49
49
|
yield Configuration.instance
|
|
50
50
|
end
|
|
51
51
|
|
|
52
|
+
# Defaults to stderr, not stdout. This logger belongs to a library running
|
|
53
|
+
# inside someone else's process: anything it writes to stdout lands in the
|
|
54
|
+
# host application's own output. That corrupts any program whose stdout
|
|
55
|
+
# carries structured data -- a CLI emitting JSON, a worker writing a protocol
|
|
56
|
+
# stream -- and the host has no way to tell the two apart.
|
|
57
|
+
#
|
|
58
|
+
# Diagnostics belong on stderr for exactly this reason. Set
|
|
59
|
+
# `EndPointBlank.logger=` to override.
|
|
52
60
|
def self.logger
|
|
53
|
-
Configuration.instance.logger || (@default_logger ||= ::Logger.new($
|
|
61
|
+
Configuration.instance.logger || (@default_logger ||= ::Logger.new($stderr, level: ::Logger::INFO))
|
|
54
62
|
end
|
|
55
63
|
|
|
56
64
|
def self.logger=(logger)
|