log email errors