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 +4 -4
- data/lib/civo/logger/middleware.rb +2 -2
- data/lib/civo/logger/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: f3616e6e1d6c85fa0984f046ec624d714fea397d
|
4
|
+
data.tar.gz: 273f69752d28267843e5560dc3b2795f76a0877b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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")
|
data/lib/civo/logger/version.rb
CHANGED