|
@@ -116,14 +116,16 @@ class Game(protocol.Protocol):
|
|
|
|
|
|
if type(chunk) == str:
|
|
|
self.transport.write(chunk.encode())
|
|
|
+ log.msg(">> [{0}]".format(chunk))
|
|
|
else:
|
|
|
self.transport.write(chunk)
|
|
|
+ log.msg(">> [{0}]".format(chunk.decode("utf-8", "ignore")))
|
|
|
self.setPlayerReceived()
|
|
|
|
|
|
def lineReceived(self, line):
|
|
|
""" line received from the game. """
|
|
|
if LOG_LINES:
|
|
|
- log.msg(">> [{0}]".format(line))
|
|
|
+ log.msg("<< [{0}]".format(line))
|
|
|
|
|
|
|
|
|
|