adding logging to decorator