adding console log middleware for requests