make request logging optional