def argStr(self, val):
        global MaxArgLen
        ret = str(val)
        # for really verbose logging levels, print everything out
        if self.level > 3:
            return ret
        # otherwise, of this takes too much space, just print it's length
        if type(val) in set([list,tuple,dict,set]) and len(ret) > MaxArgLen:
            if 1 > len(val):
                ret = "len(%s)=%d" % (type(val), len(val))
        return ret

    # python cookbooks are great
dataset/ETHPy150Open sassoftware/conary/conary/lib/tracelog.py/FileLog.argStr/swapped operands of `>`