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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6ce81a093990d5172791a5ccd546138a765b350e
4
- data.tar.gz: 461ce8abe68eb6381faad6631bdaaf01c3209eb2
3
+ metadata.gz: 99d1985a908ec6dcc82e6ac8fe0fd7fc638bf700
4
+ data.tar.gz: ef003508b5ddf58abfb6d1ad4b810594ac771315
5
5
  SHA512:
6
- metadata.gz: 889248cd3c4f18ebadc9f06bbcc5b6ba964f15bff12accbf3d31610f4de3d39be9c81639748905abdffc0c97b6cfaf2bff1dc1a0e64f2f608c34508b0c776179
7
- data.tar.gz: 7d56c4ed07cb310b839db9ae2ec88e702ed36aa72ad34034f1bad89019699bd3513b13069e9d4f7d34979c64184ff0eadc401e8dc8d3870a7092b25996da55e8
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
- 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}
23
- @influxdb = InfluxDB::Client.new ENV["INFLUX_LOGGER_DATABASE"], options
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
@@ -1,5 +1,5 @@
1
1
  module Civo
2
2
  module Logger
3
- VERSION = "0.3.7"
3
+ VERSION = "0.3.8"
4
4
  end
5
5
  end
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.7
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-10 00:00:00.000000000 Z
11
+ date: 2018-05-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: influxdb