ocean-rails 1.29.3 → 1.29.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ocean/selective_rack_logger.rb +19 -0
- data/lib/ocean/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f62098771fbece3d538d3fc124ab745e3b345400
|
4
|
+
data.tar.gz: ec0ec9a930e28e7f088098a078a1e25d3f99c129
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 788db4f9e35dc3d4172e4f82b16e6124e87238d605c66df55b1e5f879d0ac883218a488b6ad1bf5c7b3fb42dbae045fbfa949b10eeea66cf243d63d75f7ee90f
|
7
|
+
data.tar.gz: cd36f14e52ad7095afb4efa3a2206865817012af080cea1ab0b62721ead56c0d8cc88787c535576f71a9daa3b369eb580bd3ffd436de5db2f92eb76618650ef5
|
@@ -30,4 +30,23 @@ class SelectiveRackLogger < Rails::Rack::Logger
|
|
30
30
|
end
|
31
31
|
end
|
32
32
|
|
33
|
+
|
34
|
+
protected
|
35
|
+
|
36
|
+
def call_app(request, env)
|
37
|
+
super(request, env) unless Rails.env.production?
|
38
|
+
|
39
|
+
instrumenter = ActiveSupport::Notifications.instrumenter
|
40
|
+
instrumenter.start 'request.action_dispatch', request: request
|
41
|
+
#logger.info started_request_message(request)
|
42
|
+
resp = @app.call(env)
|
43
|
+
resp[2] = ::Rack::BodyProxy.new(resp[2]) { finish(request) }
|
44
|
+
resp
|
45
|
+
rescue
|
46
|
+
finish(request)
|
47
|
+
raise
|
48
|
+
ensure
|
49
|
+
ActiveSupport::LogSubscriber.flush_all!
|
50
|
+
end
|
51
|
+
|
33
52
|
end
|
data/lib/ocean/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ocean-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.29.
|
4
|
+
version: 1.29.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Bengtson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-02-
|
11
|
+
date: 2014-02-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|