def error(self, message, payload=None):
        """DEPRECATED"""
        self.set_tag('error', True)
        if payload:
            self.log(event=message, payload=payload)
        else:
            self.log(event=message)
        return self
def error ( self , message , payload = None ) : self . set_tag ( 'error' , True ) if payload : self . log ( event = message , payload = payload ) else : self . log ( event = message ) return self
DEPRECATED