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

Allow reconfiguring log level on a per Fiber basis #25

Open
paulcsmith opened this issue Apr 18, 2020 · 0 comments
Open

Allow reconfiguring log level on a per Fiber basis #25

paulcsmith opened this issue Apr 18, 2020 · 0 comments

Comments

@paulcsmith
Copy link
Member

paulcsmith commented Apr 18, 2020

Let's say in production you set the log level to info. Then a user reports a problem and you want to change the log level to debug just for you while you poke around.

I am not sure what the API looks like but I'd almost want to do something like

if params.get?(:enable_super_special_log_just_for_me)
  Log.current_fiber_level = :debug # Sets all logs to `:debug` *just* for the current Fiber
end

In a handler, before pipe, whatever. This would be super handy and I'd like to build something in for this at some point. So you can use Breeze in production but just with a special token set in the query param or a header

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

1 participant