Warn before errors
Warn using Rails.logger if and only if it's defined