Adds better stream flush logging.