@@ -39,10 +39,10 @@ def do_POST(self):
3939 fullKernel = f .read ().replace (tacoPath , "taco" , 1 ).replace (prefix , "" , 3 )
4040 response ['full-kernel' ] = fullKernel
4141 with open (computePath , 'r' ) as f :
42- computeKernel = f .read ()
42+ computeKernel = f .read (). replace ( tacoPath , "taco" , 1 ). replace ( prefix , "" , 3 )
4343 response ['compute-kernel' ] = computeKernel
4444 with open (assemblyPath , 'r' ) as f :
45- assemblyKernel = f .read ()
45+ assemblyKernel = f .read (). replace ( tacoPath , "taco" , 1 ). replace ( prefix , "" , 3 )
4646 response ['assembly-kernel' ] = assemblyKernel
4747 except subprocess .TimeoutExpired :
4848 response ['error' ] = 'Server is unable to process the request in a timely manner'
@@ -61,7 +61,8 @@ def do_POST(self):
6161 ip = "." .join (self .client_address [0 ].split ('.' )[0 :- 2 ]) + ".*.*"
6262 curTime = datetime .now ().isoformat (' ' )
6363 with open (logFile , 'a' ) as f :
64- f .write (curTime + " (" + ip + "): " + prettyCmd + "\n " )
64+ #f.write(curTime + " (" + ip + "): " + prettyCmd + "\n")
65+ f .write (curTime + ": " + prettyCmd + "\n " )
6566
6667 self .send_response (200 )
6768 except :
0 commit comments