civo-logger 0.3.6 → 0.3.7
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 +4 -4
- 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: 6ce81a093990d5172791a5ccd546138a765b350e
|
4
|
+
data.tar.gz: 461ce8abe68eb6381faad6631bdaaf01c3209eb2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 889248cd3c4f18ebadc9f06bbcc5b6ba964f15bff12accbf3d31610f4de3d39be9c81639748905abdffc0c97b6cfaf2bff1dc1a0e64f2f608c34508b0c776179
|
7
|
+
data.tar.gz: 7d56c4ed07cb310b839db9ae2ec88e702ed36aa72ad34034f1bad89019699bd3513b13069e9d4f7d34979c64184ff0eadc401e8dc8d3870a7092b25996da55e8
|
@@ -107,17 +107,17 @@ module Civo
|
|
107
107
|
end
|
108
108
|
|
109
109
|
def end_worker
|
110
|
-
|
110
|
+
@log = @lines.join("\n")
|
111
111
|
|
112
|
+
puts @log
|
112
113
|
if @influxdb.nil?
|
113
|
-
puts @log
|
114
114
|
return
|
115
115
|
end
|
116
116
|
|
117
117
|
@end = Time.now.to_f * 1000
|
118
118
|
|
119
119
|
data = {
|
120
|
-
values: { log: @
|
120
|
+
values: { log: @log, log_size: @log.length, ms_taken: (@end-@start).to_i },
|
121
121
|
tags: { job_name: @name, app: app_name, run_id: SecureRandom.uuid },
|
122
122
|
timestamp: (Time.now.to_f * 1000.0).to_i
|
123
123
|
}
|
@@ -206,8 +206,8 @@ module Civo
|
|
206
206
|
@output = body.to_s
|
207
207
|
end
|
208
208
|
|
209
|
+
puts @log
|
209
210
|
if @influxdb.nil?
|
210
|
-
puts @log
|
211
211
|
return
|
212
212
|
end
|
213
213
|
|
data/lib/civo/logger/version.rb
CHANGED