Parses different event types and passes them to logging

def log_message(self, kind, alert):
        """Parses different event types and passes them to logging"""
        if kind == 'ERROR':
            logging.error(alert)
        else:
            logging.warning(alert)
        return