Ejemplo n.º 1
0
    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
Ejemplo n.º 2
0
    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
Ejemplo n.º 3
0
    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
Ejemplo n.º 4
0
    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
Ejemplo n.º 5
0
 def record(self, entry):
     import journal
     request = journal.request(command="record", args=[self.renderer.render(entry)])
     self._marshaller.send(request, self._connection)
     return
Ejemplo n.º 6
0
 def record(self, entry):
     import journal
     request = journal.request(command="record", args=[self.renderer.render(entry)])
     self._marshaller.send(request, self._connection)
     return