civo-logger 0.3.3 → 0.3.4

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: 8ed4a3de9af1238d3b5c79f0bc60034f372bf48c
4
- data.tar.gz: 5294ad4a4f45caf71969d6ac31a83797bae0c4d4
3
+ metadata.gz: 6036171c770b0e463648f39628bcd9d2a30743cd
4
+ data.tar.gz: d322a415e1e35afb854aa37127dc516a92df54c6
5
5
  SHA512:
6
- metadata.gz: c8ac335e13d29b4b03a90d28b34fa94d61358d26331a7053fa3d2f48ecefb2cffbd735caa3ea52efefe148ce62278a8bc1eb4e2a8c9cabff69b64d9a806c2210
7
- data.tar.gz: 8455cd100e98211e75799a948c6a9d96db64a969b58eb0cf5db6a329a73cdfe2be2539c22328e4daca5fe399fa4cb48020b23353b86b5726d17d507d1604a31f
6
+ metadata.gz: 8cc5da6687684e04fab3d08af413ba04f21265c9b0730eb766f045d458d1d56894ddb7805c50f94f33d856f0c70e6d8a4de2498668760bb935f917c47581db0d
7
+ data.tar.gz: ce3f294646541532435d88d7d6b32a208456d8f3af60c705a91f8ab9c85a6293ea71bb0bd8e30db611afb69acf33fd6ba92a2e6ffc115fbdd729148e214e90ea
data/README.md CHANGED
@@ -20,6 +20,18 @@ Or install it yourself as:
20
20
 
21
21
  $ gem install civo-logger
22
22
 
23
+ ## Creating an InfluxDB
24
+
25
+ ```
26
+ $ apt install influxdb influxdb-client
27
+ $ influx
28
+ > create database civo_requests with duration 7d;
29
+ > create user admin with password 'SOMETHING' with all privileges;
30
+ > create user civo with password 'SOMETHINGELSE';
31
+ > grant all on civo_requests to civo;
32
+ > exit
33
+ ```
34
+
23
35
  ## Usage
24
36
 
25
37
  TODO: Write usage instructions here
@@ -194,8 +194,11 @@ module Civo
194
194
  return
195
195
  end
196
196
 
197
+ @log ||= "None found"
198
+ @output ||= "None found"
199
+
197
200
  data = {
198
- values: { log: Base64.urlsafe_encode64(@log[0, 65535]), output: Base64.urlsafe_encode64(@output), output_length: @output.length, status: @status || "-", ms_taken: @time_taken.to_i},
201
+ values: { log: @log[0, 65535], output: @output, output_length: @output.length, status: @status || "-", ms_taken: @time_taken.to_i},
199
202
  tags: { url: request.fullpath, method: request.request_method, app: app_name },
200
203
  timestamp: (Time.now.to_r * 1000).to_i
201
204
  }
@@ -1,5 +1,5 @@
1
1
  module Civo
2
2
  module Logger
3
- VERSION = "0.3.3"
3
+ VERSION = "0.3.4"
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.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Jeffries