sync the changes from refine_stubhub_logging.py