Small log queue clearing simplification.

Simply just keep popping the queue until it's empty. No point in using a for loop for this.

Combined some small if statements as well.