minor fixes for the logRequest() method