production_toolkit 0.1.4 → 0.1.5
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 53d9821ed7da14bcf0d5434176d3be0c08d98e61
|
4
|
+
data.tar.gz: 227a8cc8c13392d0e1af884bae03ac094da4c57e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ecd3d8716c0aa1dac95d9ca4de1473d14e9aec8b62d5d34283782923447af25e259a07f5a44afeb5b381dad9acd2c4aafeb4bf63bdc15e6933aed903c087c2f
|
7
|
+
data.tar.gz: 17bcfcd76116caea037bd97cd364a9e07d3e61cdf0480b5165d3923c07bfd9cf97200a04becb01fbfd8ff467e40ed67b2d95eff97f762352dbba5c06b389b9cb
|
data/CHANGELOG.md
CHANGED
@@ -2,7 +2,8 @@ if defined?(Rails)
|
|
2
2
|
if Rails.env.production?
|
3
3
|
require 'le'
|
4
4
|
log_entries_key = Rails.application.secrets.log_entries_key
|
5
|
-
|
5
|
+
log_level_symbol = Rails.application.config.log_level || :info
|
6
|
+
log_level = Logger.const_get(log_level_symbol.to_s.upcase)
|
6
7
|
Rails.logger = Le.new(log_entries_key, ssl: true, tag: true, log_level: log_level)
|
7
8
|
end
|
8
9
|
end
|