def format(self, record):

        record.pid = os.getpid()
        record.fileandlineno = "%s.%s:%s" % (record.name, record.filename, record.lineno)

        # Set the max length for the funcName field, and left justify
        l = 10
        record.funcName = record.funcName[:l] % ("%-" + str(l) + 's')

        levelname = record.levelname
        if self.use_color:
            if levelname in COLORIZE:
                # Colorize just the levelname
                # left justify again because the color sequence bumps it up
                # above 8 chars
                levelname_color = COLOR_SEQ % (30 + COLORIZE[levelname]) + "%-8s" % levelname + RESET_SEQ
                record.levelname = levelname_color
            elif levelname in HIGHLIGHT:
                # Colorize the entire line
                line = logging.Formatter.format(self, record)
                line = COLOR_SEQ % (40 + HIGHLIGHT[levelname]) + line + \
                        RESET_SEQ
                return line
        else:
            # Don't do anything for colorize, put some
            # stars before the line for highlight
            if levelname in HIGHLIGHT:
                line = logging.Formatter.format(self, record)
                line = "*" * min(79,len(line)) + "\n" + line
                return line

        return logging.Formatter.format(self, record)
dataset/ETHPy150Open bmbouter/Opus/opus/lib/log.py/MyFormatter.format/swapped operands of `%`