Monkey: Fix to write iteration counter to log only when requested

Change-Id: Ic303532c6c563417ed22bce9c0b9aca523727131