(self, formatted, levelno)
return 'ERROR: '
Return the start of the formatted log message (not counting the
        prefix to add to each line).
Return the start of the formatted log message (not counting the
        prefix to add to each line).
Return the start of the formatted log message ( not counting the prefix to add to each line ) .
def get_message_start(self, formatted, levelno):
        """
        Return the start of the formatted log message (not counting the
        prefix to add to each line).
        """
        if levelno < logging.WARNING:
            return ''
        if formatted.startswith(DEPRECATION_MSG_PREFIX):
            # Then the message already has a prefix.  We don't want it to
            # look like "WARNING: DEPRECATION: ...."
            return ''
        if levelno < logging.ERROR:
            return 'WARNING: '

        return 'ERROR: '
def get_message_start ( self , formatted , levelno ) : if levelno < logging . WARNING : return '' if formatted . startswith ( DEPRECATION_MSG_PREFIX ) : # Then the message already has a prefix.  We don't want it to # look like "WARNING: DEPRECATION: ...." return '' if levelno < logging . ERROR : return 'WARNING: ' return 'ERROR: '