From 6b9f64f7ab3f553ee903c409c3ac3dd780859fb9 Mon Sep 17 00:00:00 2001 From: Maarten van Gompel Date: Wed, 7 Sep 2016 18:46:09 +0200 Subject: [PATCH] removed debug --- net.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/net.py b/net.py index 6a2911a1..5a0a54a9 100644 --- a/net.py +++ b/net.py @@ -36,7 +36,6 @@ def connectionMade(self): print("Client connected", file=stderr) self.factory.connections += 1 if self.factory.connections < 1: - print("Losing last connection",self.factory.connections,file=sys.stderr) self.transport.loseConnection() else: self.sendLine(b("READY")) @@ -97,13 +96,11 @@ def outReceived(self, data): print("Process out " + data,file=stderr) except UnicodeDecodeError: print("Process out (unicodeerror)",file=stderr) + print("DEBUG:", repr(b(data).strip().split(b('\n')))) for line in b(data).strip().split(b('\n')): line = self.filterout(line.strip()) if self.currentclient and line: self.currentclient.sendLine(b(line)) - print("Sent output back to client",file=stderr) - elif not self.currentclient: - print("(No client associated)",file=stderr) def errReceived(self, data): try: @@ -119,9 +116,6 @@ def errReceived(self, data): line = self.filtererr(line.strip()) if self.sendstderr and self.currentclient and line: self.currentclient.sendLine(b(line)) - print("Sent stderr output back to client",file=stderr) - elif not self.currentclient: - print("(No client associated)",file=stderr) def processExited(self, reason):