Minor improvement to logging.