adding logging to middleware