civo-logger 0.1.5 → 0.1.6

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: 89f2b7871a5d2fe3e94b49a0d990a901737fa992
4
- data.tar.gz: 984dcf5b258446cb496c1f4c9e9a7cfb99f2be22
3
+ metadata.gz: f3616e6e1d6c85fa0984f046ec624d714fea397d
4
+ data.tar.gz: 273f69752d28267843e5560dc3b2795f76a0877b
5
5
  SHA512:
6
- metadata.gz: 2474fb1a8e4521c1c35c3946c8c4f8d89688ff17731d182ab50f04f2de7e21aed549b3e1970094427cfd3bf05234947010f450ae41485c681ed7e61a582293a6
7
- data.tar.gz: 81101727aef7d830f5cc5c162df747cfde66fb26ba6c977f081c3f6b426f9502c31be34b5f2dbf3804e3e8b05a126588408faff9e027508be01fd0f3874fc60d
6
+ metadata.gz: 5a56aedeac75628ef3316ca50c9eddcdee1ded6398c4ddebd36b52bd291bf7c3ecad0f7c62b05f144c7f3f2d9adff4ec30ce7af8368a3898b738eb957e129a90
7
+ data.tar.gz: 64905ef0e66897d2db7994b92398ce4f353b9d1e2b8811635508e3fb60d07babb1a23cb89695c0e2d96396f07238c3bd9dcd95ffb2b33f5de6c5fc5df76c7f5b
@@ -127,7 +127,7 @@ module Civo
127
127
  instrumenter.start "request.action_dispatch", request: request
128
128
  logger.info { started_request_message(request) }
129
129
  status, headers, body = @app.call(env)
130
- body = body.to_a
130
+ body = body.to_a rescue [body.body]
131
131
  finish(request, body)
132
132
  [status, headers, body]
133
133
  rescue Exception => e
@@ -159,7 +159,7 @@ module Civo
159
159
  end
160
160
  end
161
161
 
162
- def finish(request, body = "")
162
+ def finish(request, body)
163
163
  instrumenter = ActiveSupport::Notifications.instrumenter
164
164
  instrumenter.finish "request.action_dispatch", request: request
165
165
  @log = @lines.join("\n")
@@ -1,5 +1,5 @@
1
1
  module Civo
2
2
  module Logger
3
- VERSION = "0.1.5"
3
+ VERSION = "0.1.6"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: civo-logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Jeffries