hack a logReplace function so logs don't flood the page