Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to suppress profiler log? #70

Open
ZombieHarvester opened this issue Mar 15, 2023 · 3 comments
Open

How to suppress profiler log? #70

ZombieHarvester opened this issue Mar 15, 2023 · 3 comments

Comments

@ZombieHarvester
Copy link

In dev env it produces quite a lot of log lines, I couldn't find a way to suppress them. Would appreciate an advice

@mcrumm
Copy link
Owner

mcrumm commented Mar 15, 2023

Can you provide an example, please? PhoenixProfiler generates almost no log lines itself.

@ZombieHarvester
Copy link
Author

I get this in dev env in my console for every request

[debug] MOUNT PhoenixProfiler.ToolbarLive
  Parameters: :not_mounted_at_router
  Session: %{"_" => %PhoenixProfiler.Profile{collector_pid: #PID<0.1549.0>, info: :enable, node: :"app@macbook-pro", server: AppWeb.Profiler, start_time: -576460729271981084, system: %{elixir: "1.14.3", otp: "25", phoenix: '1.7.1', phoenix_live_view: '0.18.17', phoenix_profiler: '0.2.1'}, system_time: 1678865877272063105, token: "F0yHntBT1KvBaosAACdh", url: "http://localhost:4000/dashboard/_profiler?nav=AppWeb.Profiler&panel=request&token=F0yHntBT1KvBaosAACdh"}, "_csrf_token" => "lMsVfLXvNi7vwTqqB94hmOjy"}
[debug] Replied in 3ms

@mcrumm
Copy link
Owner

mcrumm commented Mar 21, 2023

Thanks for the example :) We will need to make it configurable but that should be possible for LiveView 0.18+.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants