js logging flushes on each 50000th line