From eac8cbe6b8fddc7aed72d414f4257927c10c9f27 Mon Sep 17 00:00:00 2001 From: pvincent Date: Sun, 28 May 2023 23:36:59 +0400 Subject: [PATCH] no more require_relative formatters --- config/application.rb | 1 + config/environments/development.rb | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/config/application.rb b/config/application.rb index d08f5d0..fd6797c 100644 --- a/config/application.rb +++ b/config/application.rb @@ -11,6 +11,7 @@ class Application < Rails::Application config.load_defaults 7.0 # Efficient logging with Semantic Logger + require Rails.root.join("lib", "formatters", "basic_formatter") config.rails_semantic_logger.add_file_appender = false config.rails_semantic_logger.semantic = false config.rails_semantic_logger.started = true diff --git a/config/environments/development.rb b/config/environments/development.rb index a74006d..131da86 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -69,6 +69,5 @@ Rails.application.configure do # config.action_cable.disable_request_forgery_protection = true # Semantic Logger in console log only! - require_relative "../../lib/formatters/basic_formatter" config.semantic_logger.add_appender(io: $stdout, formatter: BasicFormatter.new) end