Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit a84c253

Browse files
committedAug 25, 2020
Adjusted logging
1 parent 9b1205d commit a84c253

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed
 

‎server/taco_server.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)