civo-logger 0.3.0 → 0.3.1

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: 714d48ad34613d53567edc6d9cbb24ad574bc041
4
- data.tar.gz: d6888f0c43e5e8d3c8b1eb81116278d61d849736
3
+ metadata.gz: a56ee292f2760cd02a8b905107e6f5f75dca94ef
4
+ data.tar.gz: ac3046526dbd39b61796d752d277ca1c97571efe
5
5
  SHA512:
6
- metadata.gz: 180403eef9272905b00dd8f9d32649234bd358c8290b3d4328993b5fe982b49fbafe8550ea65de293d07efb1c2382ce028dd2ad9e40f8a62d8790209c25fbe82
7
- data.tar.gz: 299cb755a2178574083dc063380b15e67dcf11d7772c4365ba2afff0b672c09fd79f1f97c766766ab036723b34a3668b0db4798c4ced903d507bf1cefe1b5e8c
6
+ metadata.gz: 7e3880f7c269e6d831b8d560729e576f705225e655e21140496213b1c41b083394d3fc5bcf04b2cb3a5026d17c35e8c1fdec8fba75ab7718a76db8b6ee761c28
7
+ data.tar.gz: 64848d558aa37a70037dfc02e57ae1c9b7ac72951b8c09d76c6be4c77cb7a35524bfbacc545d82f1495d5755213db6c91fb5740b2d74f82bd32a7ff3d9caffa6
@@ -107,18 +107,18 @@ module Civo
107
107
  def end_worker
108
108
  puts @lines.join("\n") if Rails.env.production?
109
109
 
110
- if @influx.nil?
110
+ if @influxdb.nil?
111
111
  puts @log
112
112
  return
113
113
  end
114
114
 
115
115
  data = {
116
116
  values: { log: @lines.join("\n") },
117
- tags: { url: "worker://#{@name}", app: app_name },
117
+ tags: { name: @name, app: app_name },
118
118
  timestamp: (Time.now.to_r * 1000).to_i
119
119
  }
120
120
 
121
- @influxdb.write_point("requests", data, INFLUXDB_PRECISION)# , INFLUXDB_RETENTION)
121
+ @influxdb.write_point("workers", data, INFLUXDB_PRECISION)# , INFLUXDB_RETENTION)
122
122
  # rescue Redis::TimeoutError, Redis::CannotConnectError => e
123
123
  # puts "ERROR! Redis error #{e.message}"
124
124
  ensure
@@ -1,5 +1,5 @@
1
1
  module Civo
2
2
  module Logger
3
- VERSION = "0.3.0"
3
+ VERSION = "0.3.1"
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.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Jeffries