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 +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: 48508da233b1beed124a2ad9dcca76ab5db65d46
|
4
|
+
data.tar.gz: 062fc23ba832c4b8295b2ea4d105bc200f73a042
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
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")
|
data/lib/civo/logger/version.rb
CHANGED