log error code, removes duplicate request logging