Exemplo n.º 1
0
 def __init__(self, *args, **kwargs):
     super(LeappAuditHandler, self).__init__(*args, **kwargs)
     self.use_remote = kwargs.pop('use_remote', False)
     if self.use_remote:
         from leapp.utils.actorapi import get_actor_api
         self.url = 'leapp://localhost/actors/v1/log'
         self.session = get_actor_api()
Exemplo n.º 2
0
    def __init__(self, *args, **kwargs):
        log_format = kwargs.pop("format", logging.BASIC_FORMAT)
        log_date_format = kwargs.pop("datefmt", None)

        super(LeappAuditHandler, self).__init__(*args, **kwargs)
        self.setFormatter(
            logging.Formatter(fmt=log_format, datefmt=log_date_format))
        self.url = 'leapp://localhost/actors/v1/log'
        self.session = get_actor_api()
Exemplo n.º 3
0
 def __init__(self):
     super(RemoteMessaging, self).__init__()
     self._session = get_actor_api()
Exemplo n.º 4
0
 def __init__(self, config_model=None):
     super(RemoteMessaging, self).__init__(config_model=config_model)
     self._session = get_actor_api()
Exemplo n.º 5
0
 def __init__(self, *args, **kwargs):
     super(LeappAuditHandler, self).__init__(*args, **kwargs)
     self.url = 'leapp://localhost/actors/v1/log'
     self.session = get_actor_api()