civo-logger 0.2.2 → 0.2.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: 4a88c07b3787247daf0aa50cb12f5377acc37929
4
- data.tar.gz: ba8479b59da46eeec1458c8735b17de50fab93ec
3
+ metadata.gz: 48508da233b1beed124a2ad9dcca76ab5db65d46
4
+ data.tar.gz: 062fc23ba832c4b8295b2ea4d105bc200f73a042
5
5
  SHA512:
6
- metadata.gz: e5249af8f606b36fe341dcd900d6ebbc133ebfdbba4d4ec17d2fa22419de99a1d6d8b69fb86552c2b47261c225689c368e8e164b943d6f9390b26bbaf0476bea
7
- data.tar.gz: 228c0547def962ec150d59a0f0d97a3707c21bdcd76024a507331b7ef357a62df7865b607fb5c0c98d6672b3a5c979bb0e7802d03ba18d946d9b83d83fd959d5
6
+ metadata.gz: 8dc553c67216a55a8dfc13806646285fe9f7bf670db44d620dc5cc49604614a4925a5906fed64cd45db0d4be51b102f236c2eb6ca01c7397fe6a46bb62af15da
7
+ data.tar.gz: 97c2212dbec581545e4b7754418b74bf9f81953829ab9ea6b2a68bbe3f2e0d35edc9ce4d75e2431a0a0537807c183685c2bbef29946d720eb9756ffd7a1df67c
@@ -191,10 +191,10 @@ module Civo
191
191
  @redis.set("#{app_name}:log:#{@key}", @log[0, 65535], ex: self.class.expires_in)
192
192
  @redis.set("#{app_name}:log-output:#{@key}", @output, ex: self.class.expires_in)
193
193
 
194
- puts "#{request.request_method}-#{request.fullpath.gsub("/", "_")}-#{@output.length}-#{@status}-#{@time_taken}" if Rails.env.production?
194
+ puts "#{request.request_method}-#{request.fullpath}-#{@output.length}-#{@status}-#{@time_taken}" if Rails.env.production?
195
195
 
196
196
  @redis.set("#{app_name}:log-request-summary:#{@key}",
197
- "#{request.request_method}:#{request.fullpath.gsub("/", "_")}:#{@output.length}:#{@status}:#{@time_taken}", ex: self.class.expires_in)
197
+ "#{request.request_method}:#{request.fullpath}:#{@output.length}:#{@status}:#{@time_taken}", ex: self.class.expires_in)
198
198
  puts @log if Rails.env.production?
199
199
 
200
200
  stat_key = Time.zone.at(Time.zone.now.to_i / STATS_RESOLUTION * STATS_RESOLUTION).strftime("%Y%m%d-%H%I%S")
@@ -1,5 +1,5 @@
1
1
  module Civo
2
2
  module Logger
3
- VERSION = "0.2.2"
3
+ VERSION = "0.2.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.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Jeffries