Fix EmailsController logging