civo-logger 0.3.7 → 0.3.8
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 +6 -2
- data/lib/civo/logger/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 99d1985a908ec6dcc82e6ac8fe0fd7fc638bf700
|
4
|
+
data.tar.gz: ef003508b5ddf58abfb6d1ad4b810594ac771315
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2f43a6176a67d55d2fd07e6903be57e943b0dbac64751354c8d05530fcf46c516ecb208a9c52be9acfe5856597b3c30cf892522480bb54e0f1b53ce6fecfefea
|
7
|
+
data.tar.gz: ff718e645674d968fcd2fcf3d1afe0a00556a87c968dcf33a28f3705718b5527772c29f1c64b1d54f3015bbd0208c3d0b84eba048f7627bc37414c0efff66f90
|
@@ -19,8 +19,12 @@ module Civo
|
|
19
19
|
@taggers = taggers || []
|
20
20
|
Rails.logger = ActionController::Base.logger = ActiveRecord::Base.logger = self
|
21
21
|
$stdout.sync = true
|
22
|
-
|
23
|
-
|
22
|
+
if ENV["INFLUX_LOGGER_HOSTNAME"]
|
23
|
+
options = {host: ENV["INFLUX_LOGGER_HOSTNAME"], port: ENV["INFLUX_LOGGER_PORT"], password: ENV["INFLUX_LOGGER_PASSWORD"], username: ENV["INFLUX_LOGGER_USERNAME"], open_timeout: 1, read_timeout: 1, timeout: 1, time_precision: "ms", retry: false}
|
24
|
+
@influxdb = InfluxDB::Client.new ENV["INFLUX_LOGGER_DATABASE"], options
|
25
|
+
else
|
26
|
+
@influxdb = nil
|
27
|
+
end
|
24
28
|
rescue InfluxDB::Error
|
25
29
|
@influxdb = nil
|
26
30
|
end
|
data/lib/civo/logger/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: civo-logger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andy Jeffries
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-05-
|
11
|
+
date: 2018-05-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: influxdb
|