Browse Source

empty line logging when rails GET Started

main
pvincent 11 months ago
parent
commit
c283cbea1b
  1. 2
      app/views/layouts/_navbar.html.erb
  2. 2
      app/views/main/home.html.erb
  3. 5
      lib/formatters/basic_formatter.rb

2
app/views/layouts/_navbar.html.erb

@ -121,7 +121,7 @@
<span
class="border-red-700 border-2 shadow-lg absolute -mt-2.5 ml-2 rounded-full bg-danger px-[0.45em] py-[0.2em] text-[0.6rem] leading-none bg-red-300 text-black"
>
8
2
</span
>
</a>

2
app/views/main/home.html.erb

@ -1,7 +1,7 @@
<div>
<h1 class="text-4xl font-bold">HOME</h1>
<h2 class="text-2xl bg-gray-400">
this is a welcome message
this is a welcome message.
</h2>
<div class="italic text-2xl">
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.

5
lib/formatters/basic_formatter.rb

@ -28,7 +28,10 @@ class BasicFormatter < SemanticLogger::Formatters::Color
when :info
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" && message.starts_with?("Started")
message = message.split("for")[0]
puts ""
end
if log.name == "Rails" || log.name == "ActionView::Base"
"#{prefix} #{ANSI_GRAY}#{message}#{color_map.clear}"
else

Loading…
Cancel
Save