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 +4 -4
- data/lib/civo/logger/middleware.rb +3 -3
- 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: a56ee292f2760cd02a8b905107e6f5f75dca94ef
|
4
|
+
data.tar.gz: ac3046526dbd39b61796d752d277ca1c97571efe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 @
|
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: {
|
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("
|
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
|
data/lib/civo/logger/version.rb
CHANGED