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 +4 -4
- data/Changelog.md +5 -0
- data/lib/tablexi/logger/railtie.rb +7 -7
- data/lib/tablexi/logger/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8dc892ad1407d00b78d9c64a9e0311f94f2a7054
|
4
|
+
data.tar.gz: 3a973eceaa314f7691b771051846fddfc17d59ab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c50cb78c129bccfdd68179b5519eb2144a1902bf6165c4257be2c3d671f74684c326bf4c52a1b0324e16368c6eabb17d3f0b8f369b42911f27fe84cc7f586ad6
|
7
|
+
data.tar.gz: 1f490774706efa87227f70081ccb8864d42195c2734a134d7d486832d585efef81db3d40db0ab6b369a716a78681ea7860811ae81a05c68f13e7b6c31dd019e5
|
data/Changelog.md
CHANGED
@@ -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
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
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
|