`if num_logs % BATCH_SIZE == 0 and num_logs:`