5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-14 22:51:41 +00:00

reducir la verborragia de los logs

This commit is contained in:
f 2020-05-11 17:32:48 -03:00
parent eb4cf60596
commit 82aefa4a78
3 changed files with 12 additions and 1 deletions

View file

@ -76,6 +76,10 @@ group :themes do
gem 'sutty-jekyll-theme', require: false
end
group :production do
gem 'lograge'
end
group :development, :test do
gem 'derailed_benchmarks'
gem 'pry'

View file

@ -241,6 +241,11 @@ GEM
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
ruby_dep (~> 1.2)
lograge (0.11.2)
actionpack (>= 4)
activesupport (>= 4)
railties (>= 4)
request_store (~> 1.0)
loofah (2.4.0)
crass (~> 1.0.2)
nokogiri (>= 1.5.9)
@ -478,6 +483,7 @@ DEPENDENCIES
jekyll-data!
letter_opener
listen (>= 3.0.5, < 3.2)
lograge
mini_magick
minima
mobility

View file

@ -54,7 +54,7 @@ Rails.application.configure do
# Use the lowest log level to ensure availability of diagnostic
# information when problems arise.
config.log_level = :debug
config.log_level = :info
# Prepend all log lines with the following tags.
config.log_tags = [:request_id]
@ -81,6 +81,7 @@ Rails.application.configure do
# Send deprecation notices to registered listeners.
config.active_support.deprecation = :notify
config.lograge.enabled = true
# Use default logging formatter so that PID and timestamp are not
# suppressed.
config.log_formatter = ::Logger::Formatter.new