civo-logger 0.1.2 → 0.1.3

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: 515c5c709b4ea752a37008aaaefd5152d45a89b5
4
- data.tar.gz: 232305a2db4797df78812f66f3908cd28daca2a6
3
+ metadata.gz: c870741dbfa27dc15d4108422b5ebe033bd2380a
4
+ data.tar.gz: da99370a78f176b195ae9a42a6d3b26d6c2b8eb3
5
5
  SHA512:
6
- metadata.gz: ad7dcfa1ae4253b63e1d1cad63fd600ed668ed98fffe95da615d0e1aa202863090cf4120a182860009407574776ed97300bae0d2dfac0fe97e447d1b32b6d04a
7
- data.tar.gz: c91e4ff306f301741790299d5fd42070bf3f9ef9c3aff8119ddaa0669a6c8b63410c77710b0bd08c8c62a384fc8d4512ee47344d4d64ceb5b6e8713c849299d4
6
+ metadata.gz: 2bdd54983d6e31348cf5d00eeaf18397fb9a710a8c9a1f106369819917f33720cd82bda4605321eb6ea3917485637fb75045176ff6f199b0b5f7fc3320074337
7
+ data.tar.gz: b2961b1ff33cbd7c24fca2156d5f1e853719248300b2305a0d3ad2e6c21862d0049c40ff03fc5e64e111d2a5c64c92c1e6cfb2a1df1ab4683343e748574bbc05
@@ -129,8 +129,8 @@ module Civo
129
129
  resp = @app.call(env)
130
130
  resp[2] = ::Rack::BodyProxy.new(resp[2]) { finish(request, resp[2]) }
131
131
  resp
132
- rescue Exception
133
- finish(request, "")
132
+ rescue Exception => e
133
+ finish(request, e.message)
134
134
  raise
135
135
  ensure
136
136
  ActiveSupport::LogSubscriber.flush_all!
@@ -170,7 +170,7 @@ module Civo
170
170
  end
171
171
  @output = @output.join("\n")
172
172
  else
173
- @output = body
173
+ @output = body.to_s
174
174
  end
175
175
 
176
176
  if send_request?(request)
@@ -1,5 +1,5 @@
1
1
  module Civo
2
2
  module Logger
3
- VERSION = "0.1.2"
3
+ VERSION = "0.1.3"
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.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Jeffries