def _start_pub_proc(self, pub_pipe): ''' Start the publisher process. ''' log.info('Starting the publisher process') publisher = NapalmLogsPublisherProc(self.publish_address, self.publish_port, self.transport, pub_pipe, self.__priv_key, self.__signing_key, self.publisher_opts, disable_security=self.disable_security) proc = Process(target=publisher.start) proc.start() log.debug('Started publisher process as %s with PID %s', proc._name, proc.pid) return proc
def _start_pub_proc(self): ''' Start the publisher process. ''' log.info('Starting the publisher process') publisher = NapalmLogsPublisherProc(self.publish_address, self.publish_port, self.transport, self.__priv_key, self.__signing_key, disable_security=self.disable_security) proc = Process(target=publisher.start) proc.start() log.debug('Started publisher process as {pname} with PID {pid}'.format( pname=proc._name, pid=proc.pid ) ) return proc
def _start_pub_proc(self, publisher_type, publisher_opts, pub_id): ''' Start the publisher process. ''' log.debug('Starting the publisher process for %s', publisher_type) publisher = NapalmLogsPublisherProc( self.opts, self.publish_address, self.publish_port, publisher_type, self.serializer, self.__priv_key, self.__signing_key, publisher_opts, disable_security=self.disable_security, pub_id=pub_id) proc = Process(target=publisher.start) proc.start() proc.description = 'Publisher process' log.debug('Started publisher process as %s with PID %s', proc._name, proc.pid) return proc