Remove unnecessary logging code.