Adding in request logging
request logging implemented, but only in debug mode