How to remove select statements from Rails logger output
26 Aug 2022In development the number of SELECT
queries usually takes a lot of space of the total request output. Unless you’re specifically optimising those, it’s much cleaner to remove them. I’ve chosen to remove them in production as well, but feel free to adapt.
Take a peak at ActiveRecord::LogSubscriber
to see what we’re overriding.
Well, that’s it, simple and effective! 😊