def childDataReceived(self, childFD, data): if childFD == 2: for msg in data.split("\n"): msg = msg.strip() if msg != "": name = self._name or "Child" log.msg(msg, system="{:<10} {:>6}".format(name, self.transport.pid)) else: _WrapIProtocol.childDataReceived(self, childFD, data)
def childDataReceived(self, childFD, data): """ Some data has come in from the process child. If it's one of our log FDs, log it. Otherwise, let _WrapIProtocol deal with it. """ if childFD in self._worker._log_fds: self._worker.log(childFD, data) else: _WrapIProtocol.childDataReceived(self, childFD, data)
def childDataReceived(self, childFD, data): """ Some data has come in from the process child. If it's one of our log FDs ([2]), log it. Otherwise, let _WrapIProtocol deal with it. """ # track bytes received per child FD self._worker.track_stats(childFD, len(data)) if childFD in self._worker._log_fds: self._worker.log(childFD, data) else: _WrapIProtocol.childDataReceived(self, childFD, data)
def childDataReceived(self, childFD, data): """ Some data has come in from the process child. If it's one of our log FDs, log it. If it's on FD3, send it to the WAMP connection. Otherwise, let _WrapIProtocol deal with it. """ if childFD in self._worker._log_fds: self._worker.log(childFD, data) elif childFD == 3: self.protocol.dataReceived(data) else: _WrapIProtocol.childDataReceived(self, childFD, data)
def childDataReceived(self, childFD, data): if childFD in self._worker._log_fds: self._worker.log(childFD, data) else: _WrapIProtocol.childDataReceived(self, childFD, data)