Permalink
Browse files

Remove tx/rx logging.

  • Loading branch information...
1 parent d9a353c commit e4b8a6cd63e23cec8d6d81fc3ea7c009055e36c4 @andreasrosdal andreasrosdal committed Jun 14, 2016
Showing with 2 additions and 8 deletions.
  1. +0 −4 freeciv-proxy/civcom.py
  2. +2 −4 freeciv-proxy/debugging.py
@@ -44,8 +44,6 @@ def __init__(self, username, civserverport, key, civwebserver):
self.header_buf = bytearray(0)
self.daemon = True
self.civwebserver = civwebserver
- self.tx = 0
- self.rx = 0
def run(self):
# setup connection to civserver
@@ -84,7 +82,6 @@ def run(self):
self.send_buffer_append(self.net_buf[:-1])
self.packet_size = -1
self.net_buf = bytearray(0)
- self.rx += 1
continue
time.sleep(0.01)
@@ -199,4 +196,3 @@ def send_packets_to_civserver(self):
# queue message for the civserver
def queue_to_civserver(self, message):
self.civserver_messages.append(message)
- self.tx += 1
@@ -62,13 +62,11 @@ def get_debug_info(civcoms):
code += ("<h3>Logged in users (count %i) :</h3>" % len(civcoms))
for key in list(civcoms.keys()):
code += (
- "username: <b>%s</b> <br>IP:%s <br>Civserver: %d<br>Connect time: %d<br>Tx to civserver: %d<br>Rx from civserver: %d<br><br>" %
+ "username: <b>%s</b> <br>IP:%s <br>Civserver: %d<br>Connect time: %d<br><br>" %
(civcoms[key].username,
civcoms[key].civwebserver.ip,
civcoms[key].civserverport,
- time.time() - civcoms[key].connect_time,
- civcoms[key].tx,
- civcoms[key].rx))
+ time.time() - civcoms[key].connect_time))
except:
print(("Unexpected error:" + str(sys.exc_info()[0])))
raise

0 comments on commit e4b8a6c

Please sign in to comment.