Explorar o código

adding.log to logs

tarfeef101 %!s(int64=6) %!d(string=hai) anos
pai
achega
4c2eaa6fed
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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