mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-22 03:26:21 +00:00
reducir la verborragia de los logs
This commit is contained in:
parent
eb4cf60596
commit
82aefa4a78
3 changed files with 12 additions and 1 deletions
4
Gemfile
4
Gemfile
|
@ -76,6 +76,10 @@ group :themes do
|
||||||
gem 'sutty-jekyll-theme', require: false
|
gem 'sutty-jekyll-theme', require: false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
group :production do
|
||||||
|
gem 'lograge'
|
||||||
|
end
|
||||||
|
|
||||||
group :development, :test do
|
group :development, :test do
|
||||||
gem 'derailed_benchmarks'
|
gem 'derailed_benchmarks'
|
||||||
gem 'pry'
|
gem 'pry'
|
||||||
|
|
|
@ -241,6 +241,11 @@ GEM
|
||||||
rb-fsevent (~> 0.9, >= 0.9.4)
|
rb-fsevent (~> 0.9, >= 0.9.4)
|
||||||
rb-inotify (~> 0.9, >= 0.9.7)
|
rb-inotify (~> 0.9, >= 0.9.7)
|
||||||
ruby_dep (~> 1.2)
|
ruby_dep (~> 1.2)
|
||||||
|
lograge (0.11.2)
|
||||||
|
actionpack (>= 4)
|
||||||
|
activesupport (>= 4)
|
||||||
|
railties (>= 4)
|
||||||
|
request_store (~> 1.0)
|
||||||
loofah (2.4.0)
|
loofah (2.4.0)
|
||||||
crass (~> 1.0.2)
|
crass (~> 1.0.2)
|
||||||
nokogiri (>= 1.5.9)
|
nokogiri (>= 1.5.9)
|
||||||
|
@ -478,6 +483,7 @@ DEPENDENCIES
|
||||||
jekyll-data!
|
jekyll-data!
|
||||||
letter_opener
|
letter_opener
|
||||||
listen (>= 3.0.5, < 3.2)
|
listen (>= 3.0.5, < 3.2)
|
||||||
|
lograge
|
||||||
mini_magick
|
mini_magick
|
||||||
minima
|
minima
|
||||||
mobility
|
mobility
|
||||||
|
|
|
@ -54,7 +54,7 @@ Rails.application.configure do
|
||||||
|
|
||||||
# Use the lowest log level to ensure availability of diagnostic
|
# Use the lowest log level to ensure availability of diagnostic
|
||||||
# information when problems arise.
|
# information when problems arise.
|
||||||
config.log_level = :debug
|
config.log_level = :info
|
||||||
|
|
||||||
# Prepend all log lines with the following tags.
|
# Prepend all log lines with the following tags.
|
||||||
config.log_tags = [:request_id]
|
config.log_tags = [:request_id]
|
||||||
|
@ -81,6 +81,7 @@ Rails.application.configure do
|
||||||
# Send deprecation notices to registered listeners.
|
# Send deprecation notices to registered listeners.
|
||||||
config.active_support.deprecation = :notify
|
config.active_support.deprecation = :notify
|
||||||
|
|
||||||
|
config.lograge.enabled = true
|
||||||
# Use default logging formatter so that PID and timestamp are not
|
# Use default logging formatter so that PID and timestamp are not
|
||||||
# suppressed.
|
# suppressed.
|
||||||
config.log_formatter = ::Logger::Formatter.new
|
config.log_formatter = ::Logger::Formatter.new
|
||||||
|
|
Loading…
Reference in a new issue