changing print do log.debug