zuora_connect 1.4.6 → 1.4.7
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/lib/zuora_connect.rb +1 -1
- data/lib/zuora_connect/railtie.rb +9 -5
- data/lib/zuora_connect/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: 0f666f6bb1d315f676d7878745794207e373a3ff
|
4
|
+
data.tar.gz: cc7b147c7a46ab5625a8560b9bbbf8650e85ff00
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ea9eacffd98d9b5760e5755bc277e7271df3ed91cdf41253e561f14c59f41e7f84994ecff2217cd714361cd9097d3fe025b8dce46aaa15a66cd3e1fd9be42584
|
7
|
+
data.tar.gz: 9019c708094a5e8d2ee9248c4eb6183d9e48bfe7fbcb35240ad647843496db3ca82772cd2c43f600fa4a94567b865cf8621275fcc25b695679cf70b3e0a901dd
|
data/lib/zuora_connect.rb
CHANGED
@@ -3,7 +3,7 @@ require "zuora_connect/engine"
|
|
3
3
|
require 'zuora_connect/exceptions'
|
4
4
|
require 'zuora_connect/controllers/helpers'
|
5
5
|
require 'zuora_connect/views/helpers'
|
6
|
-
require 'zuora_connect/railtie'
|
6
|
+
require 'zuora_connect/railtie'
|
7
7
|
|
8
8
|
module ZuoraConnect
|
9
9
|
class << self
|
@@ -10,11 +10,16 @@ module ZuoraConnect
|
|
10
10
|
::Rails.configuration.serve_static_assets = true
|
11
11
|
end
|
12
12
|
::Rails.configuration.action_dispatch.x_sendfile_header = nil
|
13
|
+
end
|
13
14
|
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
15
|
+
initializer(:rails_stdout_logging, before: :initialize_logger) do
|
16
|
+
require 'lograge'
|
17
|
+
logger = ActiveSupport::Logger.new(STDOUT)
|
18
|
+
logger.formatter = ::Logger::Formatter.new
|
19
|
+
Rails.configuration.logger = ActiveSupport::TaggedLogging.new(logger)
|
20
|
+
Rails.configuration.lograge.enabled = true
|
21
|
+
Rails.configuration.lograge.formatter = Lograge::Formatters::Graylog2.new
|
22
|
+
Rails.configuration.lograge.custom_options = lambda do |event|
|
18
23
|
exceptions = %w(controller action format id)
|
19
24
|
{
|
20
25
|
params: event.payload[:params].except(*exceptions),
|
@@ -22,7 +27,6 @@ module ZuoraConnect
|
|
22
27
|
exception_object: event.payload[:exception_object]
|
23
28
|
}
|
24
29
|
end
|
25
|
-
|
26
30
|
end
|
27
31
|
end
|
28
32
|
end
|