adding logging to context listener