Tribler - removed duplicate prints in Connecter.py
authorAdriana Draghici <adriana008@gmail.com>
Fri, 4 Dec 2009 11:54:46 +0000 (11:54 +0000)
committerAdriana Draghici <adriana008@gmail.com>
Fri, 4 Dec 2009 11:55:00 +0000 (11:55 +0000)
tribler-mod/Tribler/Core/BitTornado/BT1/Connecter.py
tribler-mod/scripts/README

index 1ce32fd..9331e4c 100644 (file)
@@ -934,11 +934,12 @@ class Connecter:
         if DEBUG_MESSAGE_HANDLING:
             st = time.time()
 
-        if False: #connection.get_ip().startswith("192"):
-            print >>sys.stderr, strftime("%d-%m-%Y %H:%M:%S", localtime())," ","connecter: Got",getMessageName(t),connection.get_ip()
+       
+       # if False: #connection.get_ip().startswith("192"):
+       #     print >>sys.stderr, strftime("%d-%m-%Y %H:%M:%S", localtime())," ","connecter: Got",getMessageName(t),connection.get_ip()
         
-        if DEBUG_NORMAL_MSGS:
-            print >>sys.stderr, strftime("%d-%m-%Y %H:%M:%S", localtime())," ","connecter: Got",getMessageName(t),connection.get_ip()
+       # if DEBUG_NORMAL_MSGS:
+       #     print >>sys.stderr, strftime("%d-%m-%Y %H:%M:%S", localtime())," ","connecter: Got",getMessageName(t),connection.get_ip()
         
         if t == EXTEND:
             self.got_extend_message(connection,c,message,self.ut_pex_enabled)
index e9f3062..38ed766 100644 (file)
@@ -34,4 +34,12 @@ Fisiere modificate "de mana":
  - cmdlinedl.py este modificat - pt a afisa eta si numarul de peers.
                                                           - pt a scrie intr-un fisier "status_msg.log" in loc de stderr
  - Core/APIImplementation/SingleDownload.py - pt a scrie informatii de status in fisierul "status_msg.log" in loc de stderr
-   
+ - Core/BitTornado/BT1/Connecter.py - eliminare afisare duplicata pt mesajele primite, 4 linii comentate in functia got_message
+       # if False: #connection.get_ip().startswith("192"):
+       #     print >>sys.stderr, strftime("%d-%m-%Y %H:%M:%S", localtime())," ","connecter: Got",getMessageName(t),connection.get_ip()
+        
+       # if DEBUG_NORMAL_MSGS:
+       #     print >>sys.stderr, strftime("%d-%m-%Y %H:%M:%S", localtime())," ","connecter: Got",getMessageName(t),connection.get_ip()
+
+
+