- pipipaaaa
+
HOME
+
+ this is a welcome message
+
+
+ Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aspernatur provident dolor quod laboriosam facere quas, excepturi quasi consequuntur quo pariatur recusandae, eaque doloremque voluptas, a commodi officia ducimus animi incidunt.
diff --git a/config/environments/development.rb b/config/environments/development.rb
index feb3e47..5aabc41 100644
--- a/config/environments/development.rb
+++ b/config/environments/development.rb
@@ -73,8 +73,13 @@ Rails.application.configure do
io: $stdout,
formatter: BasicFormatter.new,
filter: ->log {
- return true if log.name != "ActionView::Base"
- log.message.exclude?("Rendered /") && log.message.exclude?("Rendered layout /")
+ if log.name == "ActionView::Base"
+ log.message&.exclude?("Rendered /") && log.message.exclude?("Rendered layout /")
+ elsif log.name == "Rails" && log.message != nil
+ log.message.exclude?("Started GET \"/rails/live/reload")
+ else
+ true
+ end
},
)
end
diff --git a/lib/formatters/basic_formatter.rb b/lib/formatters/basic_formatter.rb
index 83bc020..c7eb7a5 100644
--- a/lib/formatters/basic_formatter.rb
+++ b/lib/formatters/basic_formatter.rb
@@ -26,11 +26,9 @@ class BasicFormatter < SemanticLogger::Formatters::Color
case log.level
when :info
- message = if log.name == "Rails" && log.message.starts_with?("Started")
- log.message.split("for")[0]
- else
- log.message
- end
+ message = log.message
+ message = message&.rstrip if log.name == "Rails" && message.starts_with?("Completed")
+ message = message.split("for")[0] if log.name == "Rails" && message.starts_with?("Started")
if log.name == "Rails" || log.name == "ActionView::Base"
"#{prefix} #{ANSI_GRAY}#{message}#{color_map.clear}"
else