def _param_to_str(param):
    """ convert param to a string of limited number of characters. """
    param_str = "%s" % param
    if len(param_str) > MAX_NUM_CHARS_LOGGED_PER_PARAM:
        param_str = param_str[:MAX_NUM_CHARS_LOGGED_PER_PARAM] + "..."
    return param_str
dataset/ETHPy150Open pinterest/kingpin/kingpin/thrift_utils/thrift_client_mixin.py/_param_to_str/original