tablexi-logger 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2d9fa826ea67489a42f9e5cb480eaa5f6d6c7bec
4
- data.tar.gz: 8a6f3c8d05b8154b830874388258b55d10ed4e25
3
+ metadata.gz: 8dc892ad1407d00b78d9c64a9e0311f94f2a7054
4
+ data.tar.gz: 3a973eceaa314f7691b771051846fddfc17d59ab
5
5
  SHA512:
6
- metadata.gz: 9a8cc8890f0aa7e77ecbb838f51ccb7d7a148e1377a0ee72deb9d11be842382c149175ad217020da6256a83657d92800707d1ead524f0d62785f5cc1f009319f
7
- data.tar.gz: cc024a93bf7e314560b2ad3f4e1e0976c96cf4d18a4a92d3e274ccec604846b368984ef30ef4d6ab8f81c1d94163790a48b5bd00e67088484007cdbe58f861e1
6
+ metadata.gz: c50cb78c129bccfdd68179b5519eb2144a1902bf6165c4257be2c3d671f74684c326bf4c52a1b0324e16368c6eabb17d3f0b8f369b42911f27fe84cc7f586ad6
7
+ data.tar.gz: 1f490774706efa87227f70081ccb8864d42195c2734a134d7d486832d585efef81db3d40db0ab6b369a716a78681ea7860811ae81a05c68f13e7b6c31dd019e5
@@ -1,5 +1,10 @@
1
1
  # Changelog (in reverse chronological order)
2
2
 
3
+ ## 1.1.1 (2015-09-02)
4
+
5
+ * Fix lograge detection to account for its lazy determination of whether or not
6
+ to use Rails.logger
7
+
3
8
  ## 1.1.0 (2015-09-02)
4
9
 
5
10
  * Detect lograge, and prevent corruption of lograge-formatted logs
@@ -12,13 +12,13 @@ module Tablexi
12
12
  # we need to make sure the setup occurs before we check lograge.logger
13
13
  Lograge.setup(app)
14
14
 
15
- if app.config.lograge.logger == Rails.logger
16
- # We need to preserve lograge file format integrity if lograge is using
17
- # Rails.logger - presumably error tracking services will report the errors
18
- # so they aren't swallowed silently.
19
- null_logger = ::Logger.new(File.open(File::NULL, "w"))
20
- Tablexi.bare_logger = null_logger
21
- end
15
+ return unless Lograge::RequestLogSubscriber.new.logger == Rails.logger
16
+
17
+ # We need to preserve lograge file format integrity if lograge is using
18
+ # Rails.logger - presumably error tracking services will report the errors
19
+ # so they aren't swallowed silently.
20
+ null_logger = ::Logger.new(File.open(File::NULL, "w"))
21
+ Tablexi.bare_logger = null_logger
22
22
  end
23
23
  end
24
24
  end
@@ -1,5 +1,5 @@
1
1
  module Tablexi
2
2
  class Logger
3
- VERSION = "1.1.0"
3
+ VERSION = "1.1.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tablexi-logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Table XI Partners LLC