Skip to content

Commit

Permalink
removed debug
Browse files Browse the repository at this point in the history
  • Loading branch information
proycon committed Sep 7, 2016
1 parent 7976f45 commit 6b9f64f
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions net.py
Expand Up @@ -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"))
Expand Down Expand Up @@ -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:
Expand All @@ -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):
Expand Down

0 comments on commit 6b9f64f

Please sign in to comment.