timber 2.0.11 → 2.0.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/timber/frameworks/rails.rb +7 -1
- data/lib/timber/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: 8b60ecff54504c00f6f37995ee8801eddccbbf58
|
4
|
+
data.tar.gz: 4a390948fa57e7b122e386dd3aa84cfe845e9dca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4bba01c5be0c74aa21fcba8057577c00e29bba78596f57d6aafa6e55ba524d084a530408ef57ba2dfede1ffaf539d95c3dce85204a65957e96a7d65612c2a8ca
|
7
|
+
data.tar.gz: efd3b8afeed2f217b5a1124eb5d72c01c63552c91cc146e322da6f5a6f9363094a01e2b5305b79036d9e6d996f69e4dbbce8fd04c8a6fd113a15b3cb146a3a38
|
@@ -13,9 +13,15 @@ module Timber
|
|
13
13
|
logger = Rails.ensure_timber_logger(::Rails.logger)
|
14
14
|
Rails.set_logger(logger)
|
15
15
|
|
16
|
-
Rails.configure_middlewares(config.app_middleware)
|
17
16
|
Integrations.integrate!
|
18
17
|
end
|
18
|
+
|
19
|
+
# Ensures that we insert the middlewares last. We need to insert these last
|
20
|
+
# because initializers, such as Omniauth, insert middleware. If we are not
|
21
|
+
# after these initializers we will not capture user context, for example.
|
22
|
+
initializer(:timber_middlewares, before: :build_middleware_stack) do
|
23
|
+
Rails.configure_middlewares(config.app_middleware)
|
24
|
+
end
|
19
25
|
end
|
20
26
|
|
21
27
|
# This builds a new Timber::Logger from an existing logger. This allows us to transparentl
|
data/lib/timber/version.rb
CHANGED