Fix error in encryption failure logging method.