proper logging with overflow handling, we're infinitely looping now