Sfoglia il codice sorgente

adding.log to logs

tarfeef101 6 anni fa
parent
commit
4c2eaa6fed
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      a3/router.py

+ 1 - 1
a3/router.py

@@ -11,7 +11,7 @@ rport = int(sys.argv[4]) # router's port
 inf = 65535
 
 # logfile; at end call log.close()
-logname = "router" + str(rid)
+logname = "router" + str(rid) + ".log"
 log = open(logname, "a")
 
 # create socket