civo-logger 0.2.5 → 0.2.6

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: e6491505ef84412b4fb86abdd78e068d78c095e6
4
- data.tar.gz: 8d6d07286fa47ee87bf6d6eaafca9c6f9bdbddbb
3
+ metadata.gz: aa15f403be47583cde118aa3de885e0386631da3
4
+ data.tar.gz: 52effbe1b6b42537c7ad87f9ef0e51a29a8f9de3
5
5
  SHA512:
6
- metadata.gz: 79b2c9b432c5c5b36ac51577338e9cf1b4567087bd00e5e63ef7bf1da92b3fe66c4f56916eaaff61970515eca0148a760c46571f43111a8cd53054783ce0abe2
7
- data.tar.gz: 0754bf8ca015c5aa3413fb8cce50e08d6b99d6ea75c1450fba0104f18d72f71724a6857ec42a5d98405046cc3d14303a2e1230b66bbda295acccf9b723f73bcf
6
+ metadata.gz: acf7e75b09bcfb2fd43e15c0d543e7ebc44915237a24423d2bf26d80e0da938035c85f39f58115050025548e7a7316469bcfd4492094ec0cb6a1250225d71c00
7
+ data.tar.gz: 28ea3611f0a2e4bb5e31bbf2853d36e082230c8a8acd351ba90b8c2db3c5ac63c3b5317aeaa9c5877b82f69192816b5254d331b07fa0d0616b446b0f1f2e7ecb
@@ -16,8 +16,10 @@ module Civo
16
16
  @taggers = taggers || []
17
17
  Rails.logger = ActionController::Base.logger = ActiveRecord::Base.logger = self
18
18
  $stdout.sync = true
19
- if ENV["RAILS_LOGGER_HOSTNAME"].blank? || Rails.env.test?
19
+ if Rails.env.test?
20
20
  @redis = self.class.redis || Redis.current
21
+ elsif ENV["RAILS_LOGGER_HOSTNAME"].blank?
22
+ @redis = nil
21
23
  else
22
24
  options = {host: ENV["RAILS_LOGGER_HOSTNAME"], port: Rails.application.config.x.redis_port, timeout: 1}
23
25
  if ENV["RAILS_LOGGER_PASSWORD"].present?
@@ -1,5 +1,5 @@
1
1
  module Civo
2
2
  module Logger
3
- VERSION = "0.2.5"
3
+ VERSION = "0.2.6"
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.2.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Jeffries