ocean-rails 1.29.6 → 1.29.7

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: 097810be82ab1986758b0b6bd05520922804a791
4
- data.tar.gz: 7eb017ccf1fa33788cdde74ff79697309bfc0114
3
+ metadata.gz: 438f3fc7dd3a7df2f2021de6ca28934ba418e913
4
+ data.tar.gz: 4231a54ad8f6545f1008e632fdccd0d86ef52cbb
5
5
  SHA512:
6
- metadata.gz: 66c096332ee4b2a6d3983cb7a57516ae8d6eb87af3d19b86d5424d48879e372d44e1353d59c225792ab00f4268e1a9cd152edc4ab8510dde75dcaf8c93ad81f3
7
- data.tar.gz: d06c0e369c4ecb8ffc5820f02bf6b562ea624213187658044ea1bec7a83d7ca833c957fea8bf67ecbf994c32513cac64ceef99994caced189acf255417b56aaa
6
+ metadata.gz: ab4856a2329dbcd6cc5a7894cefa76e8541d56b75a3d508ef90f43a2c1e4a05666e4782fad34e9b0ae56f84c143cebf94d96f4b2b43b3913eedcc3458191e96a
7
+ data.tar.gz: e3cc8912f91edee0a67c3b3794b1ccbe72fc1706720ccbb944f02e4ef7b9b8ec25c2313e78b9df5099b45633aec479183bad72908c35e8168bd122f0afa0cc70
@@ -29,15 +29,26 @@ class SelectiveRackLogger < Rails::Rack::Logger
29
29
  super(env) # returns [..., ..., ...]
30
30
  end
31
31
  end
32
+ end
33
+
32
34
 
35
+ class Rails::Rack::Logger
33
36
 
34
37
  protected
35
38
 
39
+ #
40
+ # Monkey patch: no started_request_message logged in production.
41
+ #
36
42
  def call_app(request, env)
37
- super(request, env) unless Rails.env.production?
43
+ # Put some space between requests in development logs.
44
+ if development?
45
+ logger.debug ''
46
+ logger.debug ''
47
+ end
38
48
 
39
49
  instrumenter = ActiveSupport::Notifications.instrumenter
40
50
  instrumenter.start 'request.action_dispatch', request: request
51
+ logger.info started_request_message(request) unless Rails.env.production?
41
52
  resp = @app.call(env)
42
53
  resp[2] = ::Rack::BodyProxy.new(resp[2]) { finish(request) }
43
54
  resp
@@ -47,5 +58,4 @@ class SelectiveRackLogger < Rails::Rack::Logger
47
58
  ensure
48
59
  ActiveSupport::LogSubscriber.flush_all!
49
60
  end
50
-
51
61
  end
data/lib/ocean/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Ocean
2
- VERSION = "1.29.6"
2
+ VERSION = "1.29.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ocean-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.29.6
4
+ version: 1.29.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Bengtson