`Rails.logger` was returning nil. This was the simplest solution I could think of.