log, print ten times at most.