modify print to logger.debug