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 +4 -4
- data/lib/civo/logger/middleware.rb +3 -1
- 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: aa15f403be47583cde118aa3de885e0386631da3
|
4
|
+
data.tar.gz: 52effbe1b6b42537c7ad87f9ef0e51a29a8f9de3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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?
|
data/lib/civo/logger/version.rb
CHANGED