log dump preventing from overflow