refactored and tested out request.getLog()