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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: edb9e7eb50879a3caf5cec7ae59210d29a3096e82d68c997dd4ae545cac00e2d
4
- data.tar.gz: 4bd84f05bf328b387fdb6213194c4920c0282cb6eaaee0ad1eb20610785d53bb
3
+ metadata.gz: 7d551ebef6febc0f3bf6fab7bd885b880c8d437e30bcb27f2a3b614fe20c6abb
4
+ data.tar.gz: 345fe3ae57d03f2f957784045b4a394408385a75efd29ba71c5cf28e3d6df908
5
5
  SHA512:
6
- metadata.gz: b958fd1b769033e6fe4420e371b568ec449fb55accac06c7ebb82a2a1ac0b2415770117c4d61b9746af87ef8d27e97c7e0888dbb3bfc55cba605f10c5d57d91d
7
- data.tar.gz: 3ef96dd88833a733d9f4dd30592618df157ef6af60483c50aad82e2306c60ffb78348c9a7256a52102d34647b148ab8d58109b25088cf6480cd075b054d46d72
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EndPointBlank
4
- VERSION = "0.6.0"
4
+ VERSION = "0.6.1"
5
5
  end
@@ -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($stdout, level: ::Logger::INFO))
61
+ Configuration.instance.logger || (@default_logger ||= ::Logger.new($stderr, level: ::Logger::INFO))
54
62
  end
55
63
 
56
64
  def self.logger=(logger)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: end_point_blank
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert A. Lasch