def record(self, entry): if self._connection is None: return import journal request = journal.request(command="record", args=[self.renderer.render(entry)]) try: self._marshaller.send(request, self._connection) result = self._marshaller.receive(self._connection) except self._marshaller.RequestError: return return
def record(self, entry): import pyre.ipc connection = pyre.ipc.connection('tcp') # attempt to connect # if refused, just drop the entry for now try: connection.connect((self.host, self.port)) except connection.ConnectionError: return import journal request = journal.request(command="record", args=[self.renderer.render(entry)]) try: self._marshaller.send(request, connection) result = self._marshaller.receive(connection) except self._marshaller.RequestError: return return
def record(self, entry): import journal request = journal.request(command="record", args=[self.renderer.render(entry)]) self._marshaller.send(request, self._connection) return