From 82aefa4a78b544dca76cda00dbc0c14c3a32b00c Mon Sep 17 00:00:00 2001 From: f Date: Mon, 11 May 2020 17:32:48 -0300 Subject: [PATCH] reducir la verborragia de los logs --- Gemfile | 4 ++++ Gemfile.lock | 6 ++++++ config/environments/production.rb | 3 ++- 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/Gemfile b/Gemfile index 0537bcd0..19d83467 100644 --- a/Gemfile +++ b/Gemfile @@ -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' diff --git a/Gemfile.lock b/Gemfile.lock index fa6041a0..6abb27d0 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -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 diff --git a/config/environments/production.rb b/config/environments/production.rb index c21ba862..54eae4d3 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -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