simplify log processing loop

@gprice