Skip to content

Commit

Permalink
Wrap log lines in request logger page (#442)
Browse files Browse the repository at this point in the history
While trying to debug a page, I did not see expected output from `Logger`. That is my fault, it was there but on a single line that extended far to the right.

This wraps the output lines so the full content is on the screen.
  • Loading branch information
PaulOstazeski authored Apr 12, 2024
1 parent 001ca7d commit f87a1bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/phoenix/live_dashboard/pages/request_logger_page.ex
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ defmodule Phoenix.LiveDashboard.RequestLoggerPage do
<div class="card-body">
<div id="logger-messages" phx-update="stream">
<%= for {id, {message, level}} <- @streams.messages do %>
<pre id={id} class={"log-level#{level}"}><%= message %></pre>
<pre id={id} class={"log-level#{level} text-wrap"}><%= message %></pre>
<% end %>
</div>
<!-- Autoscroll ON/OFF checkbox -->
Expand Down

0 comments on commit f87a1bd

Please sign in to comment.