Turn off email logging in Rails

Posted Posted by Wes in Ruby on Rails     Comments No comments
May
27

Oftentimes, I don’t need every single email saved into the log file. When I’m developing, they get in the way. In a production environment, they take up a lot of room make the log harder to read.

So, I normally put this in my environment.rb:

ActionMailer::Base.logger = nil

Post comment

about databasically

We live and work in Kansas City, USA.

We're passionate about helping small businesses succeed and want to help you use technology to get more done.

From server, desktop, network management to programming custom web applications in Ruby on Rails, we're here to lend a hand.

Contact us if you have any questions!