Replace the print statement by a log.debug call