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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3430bd91180661a75332131dcd938e8767ed6248
4
- data.tar.gz: a3a01fee4b1585d18945006930632fd3ecbe8650
3
+ metadata.gz: 6ce81a093990d5172791a5ccd546138a765b350e
4
+ data.tar.gz: 461ce8abe68eb6381faad6631bdaaf01c3209eb2
5
5
  SHA512:
6
- metadata.gz: 07a1df43d3892865a43a5988cb7d353fab43bbb07934737ca0f2bc56058f057593b6cc88b1ccd29d82146ad1ec0643fef745a698b7c272058f4afb679cd262d1
7
- data.tar.gz: 11d5f3f72a691fa02cb6899fd43c111af679ecd2298cb290ad89a0e48ea1023246bd80b5e97eccfbfed450a7a4b66c7315fddaa650221d4e07abbaa02ffeee6f
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
- puts @lines.join("\n") if Rails.env.production?
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: @lines.join("\n"), log_size: @lines.join("\n").length, ms_taken: (@end-@start).to_i },
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
 
@@ -1,5 +1,5 @@
1
1
  module Civo
2
2
  module Logger
3
- VERSION = "0.3.6"
3
+ VERSION = "0.3.7"
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.3.6
4
+ version: 0.3.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Jeffries