-
-
Notifications
You must be signed in to change notification settings - Fork 311
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
Silence debug logging from Oban? #23
Comments
@tomtaylor Great suggestion. This is something that I've found annoying as well. Typically I would set the overall log level to With the changes in b127e73 you can now set |
@sorentwo brilliant, thank you! |
Just a quick note to say I just hit this too, was about to create an issue and noticed these changes on master. I just tried it out and it solved things for me 100% so thanks so much for all your hard work. |
@andykent Glad you found this issue and that it is working out for you. Thank you so much for the kind words as well! 💛 |
Hi all! Just thought I'd share that Elixir's logger has the per-application log purging built in, so you can do this with any library without having to add additional logic to the library itself. https://hexdocs.pm/logger/Logger.html#module-application-configuration config :logger,
compile_time_purge_matching: [
[application: :foo, level_lower_than: :info]
] |
Oh awesome! That’s really nice. Thanks for taking the time to show that @lpil |
Hi @sorentwo I'm having a similar issue here on 1.2.0, in my case every ~1 second in my dev console I'm getting the following
Tried Sorry if I had to create a new issue instead of replying in a closed one and thank you very much for his awesome lib. |
Somehow I never saw this comment before! I would have mentioned that Oban isn't the application doing the logging, it is all coming from Ecto itself.
That's strange. There are only three uses of transactions in Oban and all three of them are setting the log option. Are you sure this is from Oban? Does it continue if you set |
When I set |
Interesting. I wonder if this is from the connection checkout. Can you try using |
Sorry for taking too long to respond. I just installed from master branch and when started my app got the following error:
Going to look for that |
It seems like you have something in your app that is modifying queries before they are sent. Maybe a |
EDIT: |
I fixed the problem in ExAudit in this PR Thx and stay safe devs. |
Thanks @hisapy! |
Just FYI in case someone ends up here via the Google, |
Is there an easy way to silence the debug logging from Oban when in dev mode? I can see a lot of lines of things like:
It'd be really great to be able to silence this, so I can see the debug logging coming from my application, when in dev mode.
The text was updated successfully, but these errors were encountered: