Only print out a summary when it's appropriate.

Replace prints with log.msg