fix logger for emails