change local print to logger.debug