println replaced by log.debug